/** * Display the specified resource. * * @param int $id * @return Response */ public function showdetails($slug) { $auction = Auction::findBySlug($slug); $newestAuction = Auction::where('FK_status_id', '=', 1)->orWhere('FK_status_id', '=', 3)->orderBy('created_at', 'desc')->first(); return View::make('details')->with('auction', $auction)->with('newestAuction', $newestAuction); }