$data = [];
$query = User::orderBy($sort, $order);
if ($keyword)
{
$query = $query->where('keyword', 'like', "%{$keyword}%");
}
return $query->get()->each(function($user){
$user->roles; // 只要写上这句话就报错
});
修改的评论也不能少于六个字哦!
0
分享