public function boot(Routing $routing, Dispatcher $events)
 {
     $this->publishMigrations();
     $this->loadViews();
     $this->publishConfig();
     $this->publishPublicAssets();
     $routing->registerRoutes();
     ContentProviders::register(new StringProvider());
     ContentProviders::register(new HtmlProvider());
     ContentProviders::register(new ViewProvider());
     $events->listen(BuildingMenu::class, function (BuildingMenu $event) {
         $event->menu->add(['text' => 'Pagina\'s', 'url' => 'admin/pages']);
     });
     $this->registerPagesForMenu();
 }
Esempio n. 2
0
 private function getContentProvider()
 {
     return ContentProviders::get($this->type);
 }