public function expeditions() { $expeditions = Expedition::latest()->get(); $page = $this->contentRepository->getPageByName('expeditions'); return view('front.pages.expeditionsindex')->with(compact('expeditions', 'page')); }
protected function getExpeditions() { return Cache::remember('home:expeditions', static::CACHE_DURATION, function () { return Expedition::latest()->take(4)->get(); }); }