src/DashServicesProvider.php
public function boot()
    {


        /**
         * Package views
         */
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'dash');
        $this->publishes(
            [
                __DIR__ . '/resources/views' => resource_path('views/vendor/dash'),
            ],
            'dash-views'
        );

        $this->publishes(
            [
                __DIR__ . '/resources/views' => resource_path('views/theme/dash'),
            ],
            'dash-theme'
        );

        /**
         * Package assets
         */
        $this->publishes(
            [
                __DIR__ . '/resources/assets/js/' => public_path('assets/dash/js/'),
                __DIR__ . '/public/css/pagekit/sass/' => public_path('assets/dash/css/'),
                __DIR__ . '/resources/assets/sass/' => public_path('assets/dash/css/'),
            ],
            'dash-assets'
        );

        /**
         * Package config
         */
        $this->publishes(
            [__DIR__ . '/config/config.php' => config_path('dash.php')],
            'dash-config'
        );

        if (!$this->app->runningInConsole()) :
            include_once __DIR__ . '/Helpers/helper.php';
        endif;

        include_once __DIR__ . "/components/html-components.php";
        include_once __DIR__ . "/components/form-components.php";

        $this->themeDefaults();


       view()->composer("dash::index", function ($view) {
            $user_count = User::count();
            $post_count = Blueline::count();
            $view->with(compact("user_count", "post_count"));
        });

    }
public function boot()
    {


        /**
         * Package views
         */
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'dash');
        $this->publishes(
            [
                __DIR__ . '/resources/views' => resource_path('views/vendor/dash'),
            ],
            'dash-views'
        );

        $this->publishes(
            [
                __DIR__ . '/resources/views' => resource_path('views/theme/dash'),
            ],
            'dash-theme'
        );

        /**
         * Package assets
         */
        $this->publishes(
            [
                __DIR__ . '/resources/assets/js/' => public_path('assets/dash/js/'),
                __DIR__ . '/public/css/pagekit/sass/' => public_path('assets/dash/css/'),
                __DIR__ . '/resources/assets/sass/' => public_path('assets/dash/css/'),
            ],
            'dash-assets'
        );

        /**
         * Package config
         */
        $this->publishes(
            [__DIR__ . '/config/config.php' => config_path('dash.php')],
            'dash-config'
        );

        if (!$this->app->runningInConsole()) :
            include_once __DIR__ . '/Helpers/helper.php';
        endif;

        include_once __DIR__ . "/components/html-components.php";
        include_once __DIR__ . "/components/form-components.php";

        $this->themeDefaults();


       view()->composer("dash::index", function ($view) {
            $user_count = User::count();
            $post_count = Blueline::count();
            $view->with(compact("user_count", "post_count"));
        });

    }
public function boot ( ) { /**
         * Package views
         */ $ this -> loadViewsFrom ( __DIR__ . '/resources/views' , 'dash' ) ; $ this -> publishes ( [ __DIR__ . '/resources/views' => resource_path ( 'views/vendor/dash' ) , ] , 'dash-views' ) ; $ this -> publishes ( [ __DIR__ . '/resources/views' => resource_path ( 'views/theme/dash' ) , ] , 'dash-theme' ) ; /**
         * Package assets
         */ $ this -> publishes ( [ __DIR__ . '/resources/assets/js/' => public_path ( 'assets/dash/js/' ) , __DIR__ . '/public/css/pagekit/sass/' => public_path ( 'assets/dash/css/' ) , __DIR__ . '/resources/assets/sass/' => public_path ( 'assets/dash/css/' ) , ] , 'dash-assets' ) ; /**
         * Package config
         */ $ this -> publishes ( [ __DIR__ . '/config/config.php' => config_path ( 'dash.php' ) ] , 'dash-config' ) ; if ( ! $ this -> app -> runningInConsole ( ) ) : include_once __DIR__ . '/Helpers/helper.php' ; endif ; include_once __DIR__ . "/components/html-components.php" ; include_once __DIR__ . "/components/form-components.php" ; $ this -> themeDefaults ( ) ; view ( ) -> composer ( "dash::index" , function ( $ view ) { $ user_count = User :: count ( ) ; $ post_count = Blueline :: count ( ) ; $ view -> with ( compact ( "user_count" , "post_count" ) ) ; } ) ; }
Perform post-registration booting of services.

@return void
Perform post - registration booting of services .