when(request()->has('keyword'), function ($query) { $query->where('term', 'LIKE', request('keyword') . '%'); }); } protected function view() { return 'report::admin.reports.search_report.index'; } }