我是按照官网的例子写的"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause' (SQL: select * from `blog` where (`0` = content and `1` = like and `2` = %333%))",
$keyword=$request->input('content');
if(!empty($keyword)){
$res=Blog::where(['content','like',"%{$keyword}%"])->get();
return $res;
}
Blog::where('content','like',"%{$keyword}%")->get();