Bootstrap the application events.

@return void
188375
public function boot(Gate $gate)
    {
        // require routes
        if (!$this->app->routesAreCached()) {
            $this->app['router']->group(['middleware' => 'web', 'namespace' => 'Chronos\Scaffolding\Http\Controllers', 'prefix' => 'admin'], function () {
                require __DIR__ . '/routes/web.php';
            });
            $this->app['router']->group(['middleware' => App::environment('local', 'staging') ? 'api' : ['auth:api', 'bindings'], 'namespace' => 'Chronos\Scaffolding\Api\Controllers', 'prefix' => 'api'], function () {
                require __DIR__ . '/routes/api.php';
            });
        }

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

        // load migrations
        $this->loadMigrationsFrom(__DIR__ . '/database/migrations');

        // load translations
        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'chronos.scaffolding');

        // load views
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'chronos');

        // publish views so they can be overridden
        $this->publishes([
            __DIR__ . '/resources/views' => resource_path('views/vendor/chronos'),
        ], 'views');

        // publish assets
        $this->publishes([
            __DIR__ . '/assets/' => public_path('chronos'),
        ], 'public');

        // register gates
        $this->registerGates($gate);

        // register menu
        $this->registerMenu();
    }
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();
    }
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');
    }
571889
public function boot()
    {
        $configurations = [
            'handlers-base',
            'handlers-filters',
            'http',
            'store',
        ];

        $configDir = __DIR__.'/config';

        foreach ($configurations as $configName) {
            $this->publishes(["{$configDir}/{$configName}.php" => config_path("generic-file/{$configName}.php")]);
            $this->mergeConfigFrom("{$configDir}/{$configName}.php", 'generic-file.' . $configName);
        }
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
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();
    }
460304
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerEvents();
    }
1156875
public function boot()
    {
        if ($this->app->has('view')) {
            $viewPath = __DIR__ . '/../resources/views';
            $this->loadViewsFrom($viewPath, 'ide-helper');
        }

        $configPath = __DIR__ . '/../config/ide-helper.php';
        if (function_exists('config_path')) {
            $publishPath = config_path('ide-helper.php');
        } else {
            $publishPath = base_path('config/ide-helper.php');
        }
        $this->publishes([$configPath => $publishPath], 'config');
    }
143599
public function boot()
    {
        $this->loadMigrationsFrom($this->getDirectory().'/../../database/migrations');
        $this->loadRoutes();
        $this->loadTranslations();
        $this->loadAssets();
    }
468956
public function boot()
    {
        self::$packagePath = dirname(__DIR__);

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

        $this->deleteCookieOnLogout();

        if ($this->app->runningInConsole()) {
            $this->registerMigrations();

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

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

            $this->publishes([
                __DIR__.'/../resources/js/components' => base_path('resources/js/components/passport'),
            ], 'passport-components');

            $this->commands([
                Console\InstallCommand::class,
                Console\ClientCommand::class,
                Console\KeysCommand::class,
            ]);
        }
    }
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');
        }
    }
767359
public function boot()
    {
        parent::boot();

        $this->publishes([
            $this->getConfigFile() => config_path('settings.php')
        ], 'config');

        $this->publishes([
            $this->getBasePath() . '/database/migrations/' => database_path('migrations')
        ], 'migrations');
    }
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();
    }
280090
public function boot()
    {
        $this->registerRoutePatterns();
        $this->registerRoutes();

        /** @TODO Probably we can move this to routes file */
        Passport::routes();

        Passport::tokensExpireIn(Carbon::now()->addDays(15));

        Passport::refreshTokensExpireIn(Carbon::now()->addDays(30));

        Resource::withoutWrapping();

        $this->registerPolicies();
        $this->registerMigrations();
        $this->registerFactories();
        $this->registerMiddleware();
        $this->registerViews();
        $this->registerPublishes();
        $this->registerTranslations();
        $this->registerValidators();

        if (class_exists('Breadcrumbs')) {
            require __DIR__ . '/../../../routes/breadcrumbs.php';
        }
    }
993159
public function boot()
    {
        //
        $this->loadViewsFrom(__DIR__ . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'views',
            'Modules\Upload');

        Upload::deleted(
            function ($upload) {
                //
                $upload->deleteFile(false);
            }
        );
    }
591199
public function boot()
    {
        $this->loadRoutesFrom(__DIR__ . '/routes/web.php');
        $this->loadRoutesFrom(__DIR__ . '/routes/api.php');

        $this->loadMigrationsFrom(__DIR__ . '/migrations');
        $this->loadViewsFrom(__DIR__ . '/views', 'b3');

        $this->publishes([
            __DIR__.'/../assets' => public_path('vendor/stormyy/b3cod4x'),
        ], 'public');

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

        \Gate::policy(B3Server::class, \Config::get('b3cod4x.policy'));
    }