@inject('pageRepository', 'App\Repositories\PageRepository') @inject('siteRepository', 'App\Repositories\SiteRepository') @inject('menuRepository', 'App\Repositories\MenuRepository') @php $site = $siteRepository->findOne(); $menuItems = $menuRepository->findByName('main'); @endphp