Bootstrap the application services.

@return void
439256
public function boot()
    {
        config([
            'app.locale' => 'nl',
            'app.fallback_locale' => 'en',

            // UniSharp/laravel-filemanager
            'lfm_config.url_prefix' => 'dashboard/mediacenter',

            // laravel/laravel
            'auth.providers.users.model' => \Chuckbe\Chuckcms\Models\User::class
        ]);

        if (Schema::hasTable('sites')) {
            $site = Site::first();
        } else {
            $site = null;
        }

        if ($site !== null) {
            config([
                // mcamara/laravel-localization
                'laravellocalization.supportedLocales' => ChuckSite::getSupportedLocales(),
                'laravellocalization.useAcceptLanguageHeader' => config('lang.useAcceptLanguageHeader'),
                'laravellocalization.hideDefaultLocaleInURL' => config('lang.hideDefaultLocaleInURL'),
            ]);
        } else {
            config([
                'laravellocalization.supportedLocales' => config('lang.supportedLocales'),
                'laravellocalization.useAcceptLanguageHeader' => true,
                'laravellocalization.hideDefaultLocaleInURL' => false,
            ]);
        }
    }
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();
    }
1084245
public function boot()
    {
        $this->publishes([
            realpath(__DIR__.'/../config/follow.php') => config_path('follow.php'),
        ], 'config');

        $this->publishes([
            realpath(__DIR__.'/../database/migrations') => database_path('migrations'),
        ], 'migrations');
    }
173733
public function boot()
    {
        $this->initMigrations();
        $this->initPermissions();
        $this->initMiddlewares();
        $this->initDirectives();
        $this->initUserObserver();
        $this->initCommands();
    }
902946
public function boot()
    {
        $this->loadViewsFrom(__DIR__.'/views/role', 'role');
        $this->loadViewsFrom(__DIR__.'/views', 'dp');
        $this->publishes([
            __DIR__.'/views' => base_path('resources/views/thuylee/deeppermission'),
            __DIR__.'/migrations' => base_path('database/migrations'),
            __DIR__.'/models' => base_path('app/Models'),
            __DIR__.'/requests' => base_path('app/Http/Requests/DeepPermission'),
            __DIR__.'/middlewares' => base_path('app/Http/Middleware'),
            __DIR__.'/lang/en/deeppermission.php' => base_path('resources/lang/en/deeppermission.php'),
        ], 'deeppermission');
        $this->loadViewsFrom(__DIR__.'/views', 'dp');
        $this->publishes([

            __DIR__.'/config' => base_path('config'),
        ], 'deeppermission_config');
    }
626505
public function boot()
    {
        $app = $this->app;

        /*
         * ----------------------------------------------------------------------------
         * Bind the IOC container to our facades
         * Completely indebted to Taylor Otwell & Laravel for this.
         * ----------------------------------------------------------------------------
         */
        Facade::setFacadeApplication($app);

        /**
         * ----------------------------------------------------------------------------
         * Load path detection for relative assets, URL and path to home.
         * ----------------------------------------------------------------------------.
         */
        require_once DIR_BASE_CORE . '/bootstrap/paths.php';

        /*
         * ----------------------------------------------------------------------------
         * Add install environment detection
         * ----------------------------------------------------------------------------
         */
        $this->initializeEnvironmentDetection($app);

        /*
         * ----------------------------------------------------------------------------
         * Enable Configuration
         * ----------------------------------------------------------------------------
         */
        $config = $this->initializeConfig($app);

        /*
         * ----------------------------------------------------------------------------
         * Set configured error reporting
         * ----------------------------------------------------------------------------
         */
        $this->setupErrorReporting($config);

        /*
         * ----------------------------------------------------------------------------
         * Enable Localization
         * ----------------------------------------------------------------------------
         */
        $this->initializeLocalization($app);

        /*
         * ----------------------------------------------------------------------------
         * Finalize paths.
         * ----------------------------------------------------------------------------
         */
        require DIR_BASE_CORE . '/bootstrap/paths_configured.php';

        /*
         * ----------------------------------------------------------------------------
         * Setup core classes aliases.
         * ----------------------------------------------------------------------------
         */
        $this->initializeClassAliases($config);

        /*
         * ----------------------------------------------------------------------------
         * Simple legacy constants like APP_CHARSET
         * ----------------------------------------------------------------------------
         */
        $this->initializeLegacyDefinitions($config, $app);

        /*
         * ----------------------------------------------------------------------------
         * Setup the core service groups.
         * ----------------------------------------------------------------------------
         */
        $this->initializeServiceProviders($app, $config);

        /*
         * ----------------------------------------------------------------------------
         * Setup file cache directories. Has to come after we define services
         * because we use the file service.
         * ----------------------------------------------------------------------------
         */
        $app->setupFilesystem();

        /*
         * ----------------------------------------------------------------------------
         * Registries for theme paths, assets, routes and file types.
         * ----------------------------------------------------------------------------
         */
        $this->initializeAssets($config);
        $this->initializeRoutes($config);
        $this->initializeFileTypes($config);

        // If we're not in the CLI SAPI, lets do additional booting for HTTP
        if (!$this->app->isRunThroughCommandLineInterface()) {
            return $this->bootHttpSapi($config, $app);
        }
    }
82311
public function boot()
    {
        $this->commands([
            Install::class,
        ]);

        $this->loadRoutesFrom(__DIR__.'/Routes/api.php');

        if (! class_exists('CreateContactsTables')) {
            $timestamp = date('Y_m_d_His', time());

            $this->publishes([
                __DIR__ . '/../database/migrations/create_contacts_tables.php.stub' => database_path("migrations/{$timestamp}_create_contacts_tables.php"),
            ], 'migrations');
        }
    }
499126
public function boot()
    {
        $this->publishes([
            __DIR__.'/../database/migrations' => database_path('migrations'),
        ], 'migrations');

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

        $this->registerMacros();
    }
1098785
public function boot()
    {
        $this->publishes(
            [
                $this->getConfigPath() => config_path('vanilla-integration.php'),
            ],
            'config'
        );
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/routes.php');
        $this->registerHelpers();
    }
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');
            }
        }
    }
1273747
public function boot()
    {

        /*
         * Routes
         */
        $this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');


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


        /*
         * Migrations
         */
        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
        $this->publishes([
            __DIR__ . '/../../database/migrations' => database_path('migrations')
        ], 'migrations');


        /*
         * Translations
         */
        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'emailverification');
        $this->publishes([
            __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/emailverification'),
        ], 'translations');

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

    }
302463
public function boot()
    {
        $this->loadRoutesFrom(Core::modPath('routes.php'));
        $this->loadMigrationsFrom(Core::modPath('database/migrations'));
        $this->loadViewsFrom(Core::modPath('resources/views'), 'acl');

        // php artisan vendor:publish --tag=acl-config
        $this->publishes([Core::modPath('/config/acl.php') => config_path('acl.php')], 'acl-config');

        // php artisan vendor:publish --tag=acl-buttons
        $this->publishes([Core::modPath('resources/views/buttons') => resource_path('views/acl/buttons')], 'acl-buttons');

        // php artisan vendor:publish --tag=acl-migrations
        $this->publishes([Core::modPath('database/publish') => database_path('migrations')], 'acl-migrations');

        // php artisan vendor:publish --tag=acl-cruds
        $this->publishes([Core::modPath('resources/views/users') => resource_path('views/acl/cruds/users')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/users-permissions') => resource_path('views/acl/cruds/users-permissions')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/groups') => resource_path('views/acl/cruds/groups')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/groups-permissions') => resource_path('views/acl/cruds/groups-permissions')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/messages') => resource_path('views/acl/cruds/messages')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/document.blade.php') => resource_path('views/acl/cruds/document.blade.php')], 'acl-cruds');

        if ($this->app->runningInConsole()) {
            $this->commands([
                \Acl\Console\Commands\UserCreate::class,
                \Acl\Console\Commands\UserOn::class,
                \Acl\Console\Commands\UserOff::class,
                \Acl\Console\Commands\UserPassword::class,
                \Acl\Console\Commands\UserPanelOn::class,
                \Acl\Console\Commands\UserPanelOff::class,
            ]);
        }

        \Acl\Core::registerPolicies();

        \Acl\Core::loadBladeDirectives();
    }
986801
public function boot(): void
	{
		$fileSystem = $this->container->get(FileSystem::class);

		// Register configuration namespace

		if($fileSystem->isDirectory($path = $this->getConfigPath()))
		{
			$configLoader = $this->container->get(Config::class)->getLoader();

			if(in_array(NamespacedFileLoaderTrait::class, class_uses($configLoader)))
			{
				$configLoader->registerNamespace($this->getFileNamespace(), $path);
			}
		}

		// Register i18n namespace

		if($fileSystem->isDirectory($path = $this->getI18nPath()) && $this->container->has(I18n::class))
		{
			$i18nLoader = $this->container->get(I18n::class)->getLoader();

			if(in_array(NamespacedFileLoaderTrait::class, class_uses($i18nLoader)))
			{
				$i18nLoader->registerNamespace($this->getFileNamespace(), $path);
			}
		}

		// Register view namespace

		if($fileSystem->isDirectory($path = $this->getViewPath()) && $this->container->has(ViewFactory::class))
		{
			$this->container->get(ViewFactory::class)->registerNamespace($this->getFileNamespace(), $path);
		}

		// Bootstrap package

		$this->bootstrap();
	}
640161
public function boot()
    {
        // Bootstrap handles
        $this->routeHandle();
        $this->configHandle();
        $this->langHandle();
        $this->viewHandle();
        $this->assetHandle();
        $this->migrationHandle();
        $this->cssHandle();
        $this->jsHandle();
    }
266106
public function boot()
    {
        $root = '/../..';

        $path_to_views = $root . '/resources/views/settings';

        $this->loadRoutesFrom(__DIR__ . $root . '/routes/web.php');
        $this->loadViewsFrom(__DIR__ . $path_to_views, 'settings');
        $this->loadMigrationsFrom(__DIR__ . $root . '/database/migrations');

        $this->publishes([
            __DIR__ . $path_to_views => resource_path('views/vendor/settings'),
            __DIR__ . $root . '/config/settings.php' => config_path('settings.php'),
        ]);
    }
1147141
public function boot()
    {
        $viewPath        = __DIR__ . '/../../resources/views';
        $translationPath = __DIR__ . '/../../resources/lang';
        $this->loadMigrationsFrom(__DIR__ . '/../../../database/migrations');
        $this->loadViewsFrom($viewPath, 'gzero-social');
        $this->loadTranslationsFrom($translationPath, 'gzero-social');
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/routes.php');
        $this->addLinksToUserMenu();
        $this->publishes(
            [
                $viewPath => base_path('resources/views/vendor/gzero-social')
            ],
            'views'
        );
        $this->publishes(
            [
                $translationPath => base_path('resources/lang/vendor/gzero-social'),
            ],
            'lang'
        );
        $this->registerHelpers();
    }
1188100
public function boot()
    {
        view()->composer($this->view(), function ($view) {
            $view->with('data', $this->data());
        });
    }