/** * Show the application dashboard to the user. * * @return Response */ public function getIndex(Request $request) { $product = new Product(); $slide = new Slide(); $data = ["title" => "Trang chủ", "slide" => $slide->getlist(), 'category_show_in_index' => $this->getCategoryShowInIndex()]; return View::make('user/home', $data)->withModel($product); }