/** * * @return array */ public function getBlocks() { return LayoutBlock::where('layout_name', $this->getName())->lists('block'); }
/** * @return array */ public function getBlocks() { return Cache::remember($this->getCacheKey(), 120, function () { return LayoutBlock::where('layout_name', $this->getName())->lists('block')->all(); }); }