Bootstrap any application services.

@return void
553665
public function boot()
    {
        blade::directive('icon', function ($icon) {
            $icon = trim($icon, "'\"");

            if (substr($icon, 0, 1) !== '$') {
                $icon = "'$icon'";
            }

            return "<?= (string)Html::icon($icon); ?>";
        });

        blade::directive('html', function ($html) {
            return "<?= (string)Html::$html; ?>";
        });
    }
460797
public function boot()
    {
        $this->commands([Crud::class]);
        $this->publishes([
            __DIR__.'/../Config/config.php' => config_path('crud.php'),
            __DIR__.'/../classic-templates' => base_path('resources/views/vendor/crud/classic-templates'),
            __DIR__.'/../single-page-templates' => base_path('resources/views/vendor/crud/single-page-templates'),
        ],'nvd');
    }
262316
public function boot()
	{
        $this->publishes([
            __DIR__.'/../config/config.php' => config_path('js-localization.php')
        ]);

        $this->publishes([
            __DIR__.'/../public/js/localization.min.js' => public_path('vendor/js-localization/js-localization.min.js'),
        ], 'public');
        
        $this->mergeConfigFrom(
            __DIR__.'/../config/config.php', 'js-localization'
        );
        
		$this->loadViewsFrom(__DIR__.'/../resources/views', 'js-localization');
        
        $this->registerRefreshCommand();
        $this->registerExportCommand();
	}
1356104
public function boot()
    {
        /** @var Application\AbstractApplication $app */
        $app = $this->getContainer()->get(ApplicationInterface::class);

        $errorHandler = new Run(new ApplicationSystemFacade($app));
        $handlerService = new HandlerService($app);

        $errorHandler->pushHandler([$handlerService, 'recognizeErrorResponseHandler']);
        $errorHandler->pushHandler([$handlerService, 'notifySystemWithError']);
        $errorHandler->register();

        $service = new Application\Services\WhoopsService($errorHandler, $app);
        $this->getContainer()->share(Application\Services\WhoopsService::class, $service);
    }
687136
public function boot()
    {
        $this->publishes([
            __dir__ . '/../config/gitdeploy.php' => config_path('gitdeploy.php')
        ], 'config');
        $this->loadRoutesFrom(__dir__ . '/http/routes.php');
        $this->loadViewsFrom(__dir__ . '/views', 'gitdeploy');

    }
975253
public function bootstrap(): void
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
112951
public function boot()
    {
        if (is_null($this->init)) {
            $this->init();
        }

        if (false === $this->init) {
            if (PHP_SESSION_ACTIVE != session_status()) {
                $this->start();
            }
            $this->init = true;
        }
    }
882116
public function boot()
    {
        $this->app['modules.loader']->bootModules($this->app);

        $this->app['modules.filesystem']->getFoundFilesFromCache();

        $this->app['events']->listen('app.shutdown', function () {
            $this->app['modules.filesystem']->cacheFoundFiles();
        });
    }
915695
public function boot()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/laratrust.php', 'laratrust');

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

        $this->useMorphMapForRelationships();

        $this->registerMiddlewares();

        if (class_exists('\Blade')) {
            $this->registerBladeDirectives();
        }
    }
585723
public function boot()
    {
        // Publish config files
        $this->publishes([
            __DIR__ . '/../../config/config.php' => config_path('ma_support.php'),
        ]);

        $this->mergeConfigFrom(
            __DIR__ . '/../../config/config.php', 'ma_support'
        );

        $this->registerCustomValidators();
    }
253404
public function boot()
    {
        /*
         * Configuration
         */
        $this->publishes([
            __DIR__ . '/../config/document.php'  => config_path('document.php'),
            __DIR__ . '/../config/hashids.php'   => config_path('hashids.php'),
            __DIR__ . '/../config/observers.php' => config_path('observers.php'),
        ], 'laravel-observers');
        $this->mergeConfigFrom(
            __DIR__ . '/../config/observers.php', 'observers'
        );
        $this->mergeConfigFrom(
            __DIR__ . '/../config/document.php', 'document'
        );
        $this->mergeConfigFrom(
            __DIR__ . '/../config/hashids.php', 'hashids'
        );

        \CleaniqueCoders\LaravelObservers\Observers\Kernel::make()->observes();
    }
1268956
public function boot()
    {
        $configs = [
            'appsettings'       => 'appsettings.php',
            'globalviewvars'    => 'globalviewvars.php',
            'themerdefaultfiles'=> 'themerdefaultfiles.php',
            'socialmedia'       => 'socialmedia.php',
            'defaultusergroups' => 'defaultusergroups.php',
        ];

        $publishes = [];

        foreach ($configs as $key => $config) {
            $configFile = __DIR__ . '/config/' . $config;
            $this->mergeConfigFrom($configFile, $key);

            $publishes[$configFile] = config_path($config);
        }

        if ($this->app->runningInConsole()) {
            $this->publishes($publishes, 'laranix-configs');
        }
    }
1193626
public function boot()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/bone/captcha.php', 'bone.captcha');
        $this->loadViewsFrom(__DIR__ . '/../resources/views/vendor/bone', 'bone');
        $this->loadTranslationsFrom(__DIR__ . '/../resources/lang/vendor/bone', 'bone');

        $this->publishes([__DIR__ . '/../config' => config_path()], 'config');
        $this->publishes([__DIR__ . '/../resources/lang' => resource_path('lang')], 'lang');
        $this->publishes([__DIR__ . '/../resources/views' => resource_path('views')], 'views');

        $this->registerRoutes();
        $this->registerBladeDirectives();
        $this->registerValidator();
    }
1345653
public function boot()
    {
        $this->defineRoutes();
        $this->publishTests();
        $this->publishPublicAssets();
        $this->publishViews();
        $this->publishResourceAssets();
        $this->publishLanguages();
        $this->loadMigrations();
        $this->publishConfigFile();
    }
1267490
public function boot()
    {
        $this->loadMigrationsFrom(__DIR__ . '/../../../migrations');
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/api.php');
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/web.php');
        $this->loadViewsFrom(__DIR__ . '/../../../views', 'combine');
        $this->publishes([__DIR__ . '/../../../config/combine-core.php' => config_path('combine-core.php')]);
        $this->publishes([__DIR__ . '/../../../views' => resource_path('views/vendor/combine')]);
        $this->registerPolicies();
    }
1336770
public function boot()
    {
        $this->loadMigrationsFrom(__DIR__ . '/../../migrations');
        $this->publishes([
            __DIR__ . '/../../config/config.php' => config_path('image.php'),

            // master files
            __DIR__ . '/../../master/Image.php.dist' => app_path('Models/Image/Image.php'),

        ]);
    }
281458
public function bootstrap()
    {
        $this->services = $this->app->config('provider');

        if(!is_null($services = $this->services)) {
            foreach($services as $service) {
                $this->app->make($service)->bootstrap();
            }
        }
    }