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');

  }
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');

  }
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
Register routes translations views and publishers .