staticPageModel = StaticPage::query()->where('type', StaticPageType::our_commitments)->first(); } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.local-block-component', [ 'staticPageModel' => $this->staticPageModel ]); } }