Bootstrap the application services.
974516
public function boot()
    {
        // Helpers
        require_once __DIR__.DIRECTORY_SEPARATOR.'helpers.php';

        // Load views
        $this->loadViewsFrom(__DIR__.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'views', 'cornerstone');

        // Load translations
        $this->loadTranslationsFrom(__DIR__.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'lang', 'cornerstone');

        // Load routes
        $this->loadRoutesFrom(__DIR__.DIRECTORY_SEPARATOR.'Http'.DIRECTORY_SEPARATOR.'routes.php');

        // View Composer
        Container::getInstance()->make(ViewFactory::class)->composer('*', ViewComposerServiceProvider::class);
    }
713999
public function boot()
    {
        $configPath = config_path('admin.php');

        $this->publishes([
            __DIR__.'/../../config/config.php' => $configPath,
        ], 'config');

        $this->publishes([
            __DIR__.'/../../../public/' => public_path('packages/pingpong/admin/'),
        ], 'assets');

        $viewPath = base_path('resources/views/vendor/pingpong/admin/');

        $this->publishes([
            __DIR__.'/../../views/' => $viewPath,
        ], 'views');

        if (file_exists($configPath)) {
            $this->mergeConfigFrom($configPath, 'admin');
        }

        $this->loadViewsFrom([$viewPath, __DIR__.'/../../views'], 'admin');

        $langPath = base_path('resources/lang/en/admin.php');

        $this->publishes([
            __DIR__.'/../../lang/admin.php' => $langPath,
        ], 'lang');
    }
687619
public function boot()
    {
        $this->_registerDebugbar();
        $this->publishes([
            __DIR__.'/config/config.php' => config_path('widgetize.php'),
        ]);

        $this->defineDirectives();
        $this->loadViewsFrom($this->app->basePath().'/app/Widgets/', 'Widgets');
    }
215394
public function boot()
    {
        $this->publishes([
            __DIR__ . '/../config/roles.php' => config_path('roles.php')
        ], 'config');
        
        $stub      = __DIR__ . '/../database/migrations/';
        $target    = database_path('migrations').'/';
        
        $this->publishes([
            $stub.'create_roles_table.php'     => $target . '2016_09_04_000000_create_roles_table.php',
            $stub.'create_role_user_table.php' => $target . '2016_09_04_100000_create_role_user_table.php'
        ], 'migrations');

        $this->publishes([
            __DIR__.'/../resources/views' => base_path('resources/views/vendor'),
        ], 'views');

        $this->registerBladeExtensions();
    }
708678
public function boot()
    {
        $this->loadViewsFrom(resource_path('admin-views'), 'admin');

        if (file_exists($routes = admin_path('routes.php'))) {
            $this->loadRoutesFrom($routes);
        }

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__ . '/../resources/assets' => public_path('vendor'),
                __DIR__ . '/../resources/views' => resource_path('admin-views')
            ], 'laravel-admin-assets');

            $this->publishes([
                __DIR__ . '/../config' => config_path()
            ], 'laravel-admin-config');

            $this->publishes([
                __DIR__.'/../database' => database_path('migrations')
            ], 'laravel-admin-migrations');
        }
    }
691756
public function boot()
    {
        // Configs
        $this->publishes([
            __DIR__.'/../config/mentions.php' => config_path('mentions.php')
        ], 'config');

        // Migrations
        $this->publishes([
            __DIR__.'/../database/migrations/create_mentions_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_mentions_table.php')
        ], 'migrations');

        // Assets
        $this->publishes([
            __DIR__.'/../resources/assets/js' => resource_path('assets/js'),
            __DIR__.'/../resources/assets/sass' => resource_path('assets/sass')
        ], 'assets');

        // Routes
        $this->loadRoutesFrom(__DIR__.'/routes.php');
    }
407622
public function boot()
    {
        $this->commands([
            AdminUIInstall::class,
        ]);

        $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'brackets/admin-ui');
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'brackets/admin-ui');
        $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../install-stubs/resources/js/admin' => resource_path('js/admin'),
                __DIR__.'/../install-stubs/resources/sass/admin' => resource_path('sass/admin')
            ], 'assets');

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

            $this->publishes([
                __DIR__ . '/../install-stubs/config/wysiwyg-media.php' => config_path('wysiwyg-media.php'),
            ], 'config');

            if (!glob(base_path('database/migrations/*_create_wysiwyg_media_table.php'))) {
                $this->publishes([
                    __DIR__ . '/../install-stubs/database/migrations/create_wysiwyg_media_table.php' => database_path('migrations').'/2018_07_18_000000_create_wysiwyg_media_table.php',
                ], 'migrations');
            }
        }
    }
472681
public function boot()
    {
        $this->publishConfiguration();

        $this->loadConfig();

        $this->loadMigrations();

        $this->loadRoutes();

        $this->loadViews();
    }
1206860
public function boot()
    {
        if ($this->app->runningInConsole()) {

            $this->loadTranslationsFrom(__DIR__.'/../translations', 'self-diagnosis');

            $this->publishes([
                __DIR__.'/../translations' => resource_path('lang/vendor/self-diagnosis'),
            ], 'translations');

            $this->publishes([
                __DIR__.'/../config/config.php' => config_path('self-diagnosis.php'),
            ], 'config');
        }
    }
523931
public function boot()
    {
        if (is_dir(app_path().'/Modules/')) {
            $modules = config("modules.enable") ?: array_map('class_basename', $this->files->directories(app_path().'/Modules/'));
            foreach ($modules as $module) {
                // Allow routes to be cached
                if (!$this->app->routesAreCached()) {
                    $route_files = [
                        app_path() . '/Modules/' . $module . '/routes.php',
                        app_path() . '/Modules/' . $module . '/routes/web.php',
                        app_path() . '/Modules/' . $module . '/routes/api.php',
                    ];
                    foreach ($route_files as $route_file) {
                        if ($this->files->exists($route_file)) {
                            include $route_file;
                        }
                    }
                }
                $helper = app_path().'/Modules/'.$module.'/helper.php';
                $views  = app_path().'/Modules/'.$module.'/Views';
                $trans  = app_path().'/Modules/'.$module.'/Translations';

                if ($this->files->exists($helper)) {
                    include_once $helper;
                }
                if ($this->files->isDirectory($views)) {
                    $this->loadViewsFrom($views, $module);
                }
                if ($this->files->isDirectory($trans)) {
                    $this->loadTranslationsFrom($trans, $module);
                }
            }
        }
    }
1072487
public function boot()
    {
        $this->registerRoutes();
        $this->registerPolicies();
        $this->registerMigrations();
        $this->registerFactories();
        $this->registerViews();
        $this->registerViewComposers();
        $this->registerListeners();
        $this->registerPublishes();
    }
975253
public function bootstrap(): void
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
890700
public function boot()
	        {
		// 		if (!$this->app->routesAreCached()) {
			// 			include __DIR__ . '/routes.php';
			//


		/**
		* Package views
		*/
                    $this->loadViewsFrom(__DIR__ . '/resources/views', 'extras');

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


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


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

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

		include_once __DIR__ . "/components/extras.php";


	}
981003
public function boot()
    {
        $this->loadRoutesFrom(__DIR__.'/routes.php');
        $this->loadViewsFrom(__DIR__.'/../views', 'larrock');
        $this->loadTranslationsFrom(__DIR__.'/../lang', 'larrock');
        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');

        $public_path = public_path();
        if (substr($public_path, -6) === 'public') {
            $public_path .= '_html';
        }

        $this->publishes([
            __DIR__.'/../lang' => resource_path('lang/vendor/larrock'),
        ], 'lang');
        $this->publishes([
            __DIR__.'/../views/front' => base_path('resources/views/vendor/larrock/front'),
        ], 'views-front-core');
        $this->publishes([
            __DIR__.'/../views/admin' => base_path('resources/views/vendor/larrock/admin'),
        ], 'views-admin-core');
        $this->publishes([
            __DIR__.'/../assets/public_html' => $public_path,
            __DIR__.'/../assets/gulpfile' => base_path(),
            __DIR__.'/../assets/bower' => base_path(),
        ], 'assets');
        $this->publishes([
            __DIR__.'/../assets/policy' => $public_path,
        ], 'doc');
        $this->publishes([
            __DIR__.'/../config/larrock-core-adminmenu.php' => config_path('larrock-core-adminmenu.php'),
            __DIR__.'/../config/larrock-sitemap.php' => config_path('larrock-sitemap.php'),
            __DIR__.'/../config/larrock-to-dashboard.php' => config_path('larrock-to-dashboard.php'),
            __DIR__.'/../config/larrock.php' => config_path('larrock.php'),
        ], 'config');

        \Event::subscribe('Larrock\Core\Listeners\CoreEventSubscriber');
    }
659333
public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/media.php' => config_path('media.php')
        ], 'config');

        $this->publishes([
            __DIR__ . '/../migrations' => $this->app->databasePath() . '/migrations'
        ], 'migrations');
    }
1333954
public function boot()
    {
        $this->publishes([
            __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'config.php' => config_path('jsonapi.php'),
        ]);

        $this->configureJsonApiRequests();
        $this->registerExceptionHandler();
    }
620368
public function boot()
    {
        if ( ! $this->app->environment('production'))
        {
            $this->publishes([
                __DIR__ . '/resources/config.php' => config_path('tracker.php')
            ]);

            $this->publishes([
                __DIR__ . '/migrations/' => database_path('/migrations')
            ], 'migrations');
        }
    }