Example #1
0
 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");
 }
Example #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();
 }
Example #5
0
 public function create(View $view)
 {
     $view->prefix = 'admin';
     $view->sidebar = $this->manager->build();
 }
 /**
  * Handle an incoming request.
  *
  * @param \Illuminate\Http\Request $request
  * @param \Closure                 $next
  *
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     $this->manager->resolve();
     return $next($request);
 }
 public function boot(SidebarManager $manager)
 {
     if ($this->onBackend() === true) {
         $manager->register(AdminSidebar::class);
     }
 }