limit(3)->inRandomOrder()->get(); $newsModels = News::query()->where('published', true)->orderBy('created_at', 'desc')->limit(6)->get(); $staticPageModel = StaticPage::query()->where('type', StaticPageType::home)->firstOrFail(); $klubBloc = KlubBloc::query()->first(); \throw_if(empty($klubBloc), 'empty klubBloc'); return view('fo.pages.home', compact('staticPageModel', 'rangeModels', 'klubBloc', 'newsModels')); } }