Пример #1
0
 public function index(Page $page, PhotogalleriesGallery $photogalleriesGallery, Banner $banner, Service $service)
 {
     $about = $page->geByTitle('about');
     $banners = $banner->getByWeight();
     $services = $service->getOnTop();
     $gallery = $photogalleriesGallery->random();
     return view('index', ['banners' => $banners, 'services' => $services, 'about' => $about[0], 'gallery' => $gallery]);
 }