/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { if (Request::get('q')) { $records = Translate::where('key', 'LIKE', '%' . Request::get('q') . '%')->paginate(); } else { $records = Translate::paginate(); } return view('translates.index', compact('records')); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $records = Translate::paginate(); return view('translates.index', compact('records')); }