public function shop(Shop $shop) { $this->setBasicQuery(); Session::put('shop_name', $shop->shop_name); $searcher = new Searcher($this->query); $oldValues = $searcher->getOldValues(); $suscriptions = $searcher->getQuery()->orderBy('vouchers.finishes_at', Session::get('orderBy'))->paginate($this->resultsPerPage); return View::make('backoffice.shop')->with('suscriptions', $suscriptions)->with('shop', $shop)->with('oldValues', $oldValues); }