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