/** * Show the application dashboard. * * @param Request $request * @return Response */ public function index(Request $request) { $dishes = Dish::name($request->get('name'))->category($request->get('category'))->user($request->get('user'))->difficulty($request->get('difficulty'))->orderBy('created_at', 'DESC')->paginate(5); return view('index')->with('dishes', $dishes)->with('title', trans('titles.app_name')); }