staticPageModel = StaticPage::getCachedStaticPage(StaticPageType::story); $this->historicalMilestoneModels = HistoricalMilestone::getPublishedOrdered(); } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View */ public function render(): \Illuminate\Contracts\View\View { return view('components.fo.story.historical-milestone-component', [ 'staticPageModel' => $this->staticPageModel, 'historicalMilestoneModels' => $this->historicalMilestoneModels ]); } }