/**
  * Register routes, translations, views and publishers.
  *
  * @return void
  */
 public function boot(\Illuminate\Routing\Router $router)
 {
     Config::set('auth.model', 'Askedio\\Laravelcp\\Models\\User');
     Config::set('auth.password.email', 'lcp::emails.password');
     $router->middleware('auth', 'Askedio\\Laravelcp\\Http\\Middleware\\Authenticate');
     $router->middleware('auth.basic', 'Illuminate\\Auth\\Middleware\\AuthenticateWithBasicAuth');
     $router->middleware('guest', 'Askedio\\Laravelcp\\Http\\Middleware\\RedirectIfAuthenticated');
     $router->middleware('role', 'Askedio\\Laravelcp\\Http\\Middleware\\VerifyRole');
     $router->middleware('permission', 'Askedio\\Laravelcp\\Http\\Middleware\\VerifyPermission');
     $loader = \Illuminate\Foundation\AliasLoader::getInstance();
     $loader->alias('Nav', 'Askedio\\Laravelcp\\Helpers\\NavigationHelper');
     $loader->alias('Hook', 'Askedio\\Laravelcp\\Helpers\\HookHelper');
     $loader->alias('Search', 'Askedio\\Laravelcp\\Helpers\\SearchHelper');
     NavigationHelper::Initialize();
     HookHelper::Initialize();
     SearchHelper::Initialize();
     if (!$this->app->routesAreCached()) {
         require realpath(__DIR__ . '/../Http/routes.php');
     }
     $this->loadTranslationsFrom(realpath(__DIR__ . '/../Resources/Lang'), 'lcp');
     $this->loadViewsFrom(realpath(__DIR__ . '/../Resources/Views'), 'lcp');
     NavigationHelper::Add(['nav' => 'main', 'sort' => '0', 'link' => url('/dashboard'), 'title' => trans('lcp::nav.dashboard'), 'icon' => 'fa-dashboard']);
     $this->publishes([realpath(__DIR__ . '/../Resources/Views') => base_path('resources/views/vendor/askedio/laravelcp')], 'views');
     $this->publishes([realpath(__DIR__ . '/../Resources/Assets') => public_path('assets')], 'public');
     $this->publishes([realpath(__DIR__ . '/../Resources/Config') => config_path('')], 'config');
     $this->publishes([realpath(__DIR__ . '/../Database/Migrations') => database_path('migrations')], 'migrations');
     $this->publishes([realpath(__DIR__ . '/../Database/Seeds') => database_path('seeds')], 'seeds');
 }
 /**
  * Register routes, translations, views and publishers.
  *
  * @return void
  */
 public function boot()
 {
     NavigationHelper::Add(['nav' => 'main', 'sort' => '1', 'link' => url('/module'), 'title' => 'Module', 'icon' => 'fa-cubes']);
     HookHelper::Add(['hook' => 'dashboard', 'template' => 'l5cp-module::dashboard.welcome', 'sort' => '1']);
     if (!$this->app->routesAreCached()) {
         require realpath(__DIR__ . '/../Http/routes.php');
     }
     $this->loadTranslationsFrom(realpath(__DIR__ . '/../Resources/Lang'), 'l5cp-module');
     $this->loadViewsFrom(realpath(__DIR__ . '/../Resources/Views'), 'l5cp-module');
     $this->publishes([realpath(__DIR__ . '/../Resources/Views') => base_path('resources/views/vendor/askedio/laravelcp')], 'views');
     $this->publishes([realpath(__DIR__ . '/../Resources/Assets') => public_path('assets')], 'public');
     $this->publishes([realpath(__DIR__ . '/../Resources/Config') => config_path('')], 'config');
     $this->publishes([realpath(__DIR__ . '/../Database/Migrations') => database_path('migrations')], 'migrations');
     $this->publishes([realpath(__DIR__ . '/../Database/Seeds') => database_path('seeds')], 'seeds');
 }
 /**
  * Register routes, translations, views and publishers.
  *
  * @return void
  */
 public function boot()
 {
     $this->loadTranslationsFrom(realpath(__DIR__ . '/../Resources/Lang'), 'l5cp-user');
     $submenu = [['nav' => 'main', 'sort' => '1', 'link' => url('/admin/users/create'), 'title' => trans('lcp::button.create')], ['nav' => 'main', 'sort' => '1', 'link' => url('/admin/roles'), 'title' => trans_choice('l5cp-user::default.role', 2)], ['nav' => 'main', 'sort' => '1', 'link' => url('/admin/permissions'), 'title' => trans_choice('l5cp-user::default.permission', 2)]];
     NavigationHelper::Add(['nav' => 'main', 'sort' => '1', 'link' => url('/admin/users'), 'title' => trans_choice('l5cp-user::default.user', 2), 'icon' => 'fa-users', 'submenu' => $submenu]);
     HookHelper::Add(['hook' => 'dashboard', 'template' => 'l5cp-user::dashboard.welcome', 'sort' => '1']);
     SearchHelper::Add(['model' => 'Askedio\\Laravelcp\\Models\\User', 'name' => 'User', 'var' => 'user', 'columns' => ['email', 'name', 'id'], 'actions' => ['id' => ['method' => 'link', 'action' => '/admin/users/?/edit']]]);
     if (!$this->app->routesAreCached()) {
         require realpath(__DIR__ . '/../Http/routes.php');
     }
     $this->loadViewsFrom(realpath(__DIR__ . '/../Resources/Views'), 'l5cp-user');
     $this->publishes([realpath(__DIR__ . '/../Resources/Views') => base_path('resources/views/vendor/askedio/laravelcp')], 'views');
     $this->publishes([realpath(__DIR__ . '/../Resources/Assets') => public_path('assets')], 'public');
     $this->publishes([realpath(__DIR__ . '/../Resources/Config') => config_path('')], 'config');
     $this->publishes([realpath(__DIR__ . '/../Database/Migrations') => database_path('migrations')], 'migrations');
     $this->publishes([realpath(__DIR__ . '/../Database/Seeds') => database_path('seeds')], 'seeds');
 }