q != '') { $query->where('name', 'like', "%$request->q%"); } return $query->limit(100)->get(); } }