/** * Display a listing of the resource. * * @return Response */ public function index() { // //paginate $contentFilter = Input::get('contentFilter'); $comments = Comment::whereraw("content like ? ", ['%' . $contentFilter . '%'])->Paginate(10); return view('admin.comments.index', ['comments' => $comments, 'contentFilter' => $contentFilter]); }