public function __construct(AdminPanelRepository $admin) { $this->pages = $admin->getPages(); }
/** * Create a new composer * @param AdminPanelRepository $admin */ public function __construct(AdminPanelRepository $admin) { // Dependencies automatically resolved by service container. $this->pages = $admin->getPages(); }