Encore\Admin\Providers\AdminServiceProvider::boot PHP Method

boot() public method

Boot the service provider.
public boot ( ) : void
return void
    public function boot()
    {
        $this->loadViewsFrom(__DIR__ . '/../../views', 'admin');
        $this->loadTranslationsFrom(__DIR__ . '/../../lang/', 'admin');
        $this->publishes([__DIR__ . '/../../config/admin.php' => config_path('admin.php')], 'laravel-admin');
        $this->publishes([__DIR__ . '/../../assets' => public_path('packages/admin')], 'laravel-admin');
        if (file_exists($routes = admin_path('routes.php'))) {
            require $routes;
            $this->app['admin.router']->register();
        }
    }