public function boot(SidebarManager $manager, Request $request)
 {
     $this->request = $request;
     if ($this->onBackend() === true) {
         $manager->register(AdminSidebar::class);
     }
 }
 public function boot(SidebarManager $manager, Request $request)
 {
     $this->request = $request;
     if (!$this->isBackend()) {
         return;
     }
     $manager->register(AdministrSidebar::class);
 }
 public function boot(SidebarManager $manager, Request $request)
 {
     $this->request = $request;
     if ($this->onBackend() === true) {
         $manager->register(AdminSidebar::class);
     }
     $admin_theme = config('asgard.core.core.admin-theme');
     $location = base_path("Themes/{$admin_theme}/views/sidebar");
     $this->loadViewsFrom($location, "sidebar-theme");
 }
Beispiel #4
0
 public function boot(Dispatcher $dispatcher, SidebarManager $manager)
 {
     $dispatcher->mapUsing(function ($command) {
         $command = str_replace('Commands\\', 'Commands\\Handlers\\', get_class($command));
         return trim($command, '\\') . 'Handler@handle';
     });
     $manager->register(AdminSidebar::class);
     $this->registerMiddleware($this->app['router']);
     $this->registerModuleResourceNamespaces();
     $this->setLocalesConfigurations();
 }
 public function boot(SidebarManager $manager)
 {
     if ($this->onBackend() === true) {
         $manager->register(AdminSidebar::class);
     }
 }