Bootstrap any application services.

@return void
776693
public function boot()
    {
        $this->app->singleton(Connection::class, function() {
            return $this->app['db.connection'];
        });

        if (preg_match('/5\.[678]\.\d+/', $this->app->version())) {
            $this->app->singleton(\Illuminate\Hashing\HashManager::class, function ($app) {
                return new \Illuminate\Hashing\HashManager($app);
            });
        }

        if ($this->app->runningInConsole()) {
            $this->commands([
                Purge::class
            ]);
        }
    }
1211387
public function boot()
    {
        $this->publishes([__DIR__ . '/../../database/migrations/' => database_path('migrations')], 'migrations');
        $this->publishes([__DIR__ . '/../../config/analytics.php' => config_path('analytics.php')], 'config');

        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'analytics');
        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'analytics');

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

        if (!$this->app->routesAreCached() && config('analytics.default_routes', true)) {
            require __DIR__ . '/../Http/routes.php';
        }
    }
996536
public function boot()
    {
        $this->publishes([
            __DIR__.'/../../config/admin-lte.php' => config_path('admin-lte.php'),
        ], 'config');
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'admin-lte');
        $this->publishes([
            __DIR__.'/../../resources/views' => resource_path('views/vendor/admin-lte')
        ], 'views');
        if ($this->app->runningInConsole()) {
            $this->commands([
                AdminLTEMakeCommand::class,
            ]);
        }
    }
574873
public function boot()
    {
        try {
            Configuration::all()->each(function($config) {
                config()->set($config->key, $config->value);
            });
        } catch (QueryException $e) {
            // \\_(",)_//
        }
    }
1067653
public function boot()
    {
        $events = app('events');

        foreach ($this->listen as $event => $listeners) {
            foreach ($listeners as $listener) {
                $events->listen($event, $listener);
            }
        }
    }
1114554
public function boot()
    {
        $this->loadTranslationsFrom(__DIR__ . '/../../translations', 'verification');
        $this->loadViewsFrom(__DIR__ . '/../../views', 'verification');

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

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

        $this->publishes([
            __DIR__ . '/../../views' => resource_path('views/vendor/verification'),
        ], 'views');
    }
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();
        });
    }
1072487
public function boot()
    {
        $this->registerRoutes();
        $this->registerPolicies();
        $this->registerMigrations();
        $this->registerFactories();
        $this->registerViews();
        $this->registerViewComposers();
        $this->registerListeners();
        $this->registerPublishes();
    }
1087315
public function boot()
    {

        $this->loadViewsFrom(realpath(__DIR__.'/views'), 'entrance');
        $this->setupRoutes();
        // this  for conig
                $this->publishes([
                        __DIR__.'/config/entrance.php' => config_path('entrance.php'),
                        __DIR__.'/database/migrations' => database_path('migrations'),
                        __DIR__.'/database/seeds' => database_path('seeds'),
                        //__DIR__.'/models' => app_path(),
                        //__DIR__.'/views/emails' => base_path('resources/views/intothesource/entrance/emails'),
                        //__DIR__.'/views/pages' => base_path('resources/views/intothesource/entrance/pages'),
                        //__DIR__.'/Http/Controllers' => app_path('Http/Controllers/Intothesource/Entrance'),

                ]);
    }
687756
public function boot()
    {

        $this->loadViewsFrom(__DIR__.'/../../views', 'expendable');
        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'expendable');
        $this->loadMigrationsFrom(__DIR__.'/../../database/migrations/');


        $this->publishes([
            __DIR__.'/../../config/config.php'    => config_path('expendable.php'),
            __DIR__.'/../../database/seeds/'      => base_path('/database/seeds'),
        ]);


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

        $autoLoaderListener = new \Distilleries\Expendable\Register\ListenerAutoLoader(config('expendable.listener'));
        $autoLoaderListener->load();

    }
430983
public function boot()
    {
        $this->app['events']->listen($this->failedEvent, function ($event) {
            if (isset($event->user) && is_a($event->user, 'Illuminate\Database\Eloquent\Model')) {
                $event->user->notify(new FailedLoginNotification(
                    $this->app['request']->ip()
                ));
            }
        });

        $this->app['events']->listen($this->successEvent, function ($event) {
            if (isset($event->user) && is_a($event->user, 'Illuminate\Database\Eloquent\Model')) {
                $event->user->notify(new SuccessfulLoginNotification(
                    $this->app['request']->ip()
                ));
            }
        });
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
468956
public function boot()
    {
        self::$packagePath = dirname(__DIR__);

        $this->publishes(
            [
                self::$packagePath . '/config/repository.php' => config_path('repository.php'),
            ],
            'repository'
        );
    }
659333
public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/media.php' => config_path('media.php')
        ], 'config');

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

        $helpersDirectory = config('helpers.helpers_path');

        if (file_exists($helpersDirectory) && is_dir($helpersDirectory)) {
            $this->loadHelpersFrom($helpersDirectory);
        }
    }
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();
        }
    }
198559
public function boot() {
		include __DIR__ .'/helper/it.php';
		if (!file_exists(base_path('config').'/itconfiguration.php')) {

			$this->publishes([__DIR__ .'/environment/config'    => base_path('config')]);
			$this->publishes([__DIR__ .'/environment/app'       => base_path('app')]);
			$this->publishes([__DIR__ .'/environment/database'  => base_path('database')]);
			$this->publishes([__DIR__ .'/environment/resources' => base_path('resources')]);
			$this->publishes([__DIR__ .'/environment/routes'    => base_path('routes')]);
		}

		Route::middleware('web')
			->prefix('it')
			->group(__DIR__ .'/it_router.php');
		require_once __DIR__ .'/helper/it.php';
		require_once __DIR__ .'/helper/fontawesome.php';
	}