public function onRun() { $this->ministryPage = $this->page['ministryPage'] = $this->property('ministryPage'); $items_per_page = $this->property('items_per_page'); $ministries = MinistryModel::paginate($items_per_page); $this->page['ministries'] = $ministries; }
public function onRun() { $ministry_slug = $this->property('ministry_slug'); $this->page['ministry'] = $ministry = MinistryModel::where('slug', $ministry_slug)->first(); }