Bootstrap the application events.

@param  \Illuminate\Routing\Router  $router
@return void
518430
public function boot(Router $router)
	{
        $attributes = [
            'prefix'     => config('lia.route.prefix').'/trans',
            'namespace'  => 'Lia\Addons\TranslationManager',
            'middleware' => ['api', 'jwt.auth'],
            'as'         => 'trans.'
        ];

        $router->group($attributes, function($router)
        {
            $router->get('/{groupKey?}', 'Controller@getIndex')->where('groupKey', '.*')->name('getIndex');
            $router->post('/add/{groupKey}', 'Controller@postAdd')->where('groupKey', '.*')->name('postAdd');
            $router->post('/edit/{groupKey}', 'Controller@postEdit')->where('groupKey', '.*')->name('postEdit');
            $router->post('/groups/add', 'Controller@postAddGroup')->name('postAddGroup');
            $router->post('/delete/{groupKey}/{translationKey}', 'Controller@postDelete')->where('groupKey', '.*')->name('postDelete');
            $router->post('/import', 'Controller@postImport')->name('postImport');
            $router->post('/find', 'Controller@postFind')->name('postFind');
            $router->post('/locales/add', 'Controller@postAddLocale')->name('postAddLocale');
            $router->post('/locales/remove', 'Controller@postRemoveLocale')->name('postRemoveLocale');
            $router->post('/publish/{groupKey}', 'Controller@postPublish')->where('groupKey', '.*')->name('postPublish');
        });
	}
287130
public function boot() : void
    {
        $kernel = app(Kernel::class);

        if (class_uses_trait($kernel, RegistersRouters::class)) {
            $kernel->bootRouters();
        }
    }
103814
public function boot(Router $router)
    {
        $this->publishes([
            realpath(__DIR__ . '/../config/laravel-theme.php') => config_path('laravel-theme.php'),
        ]);
        if (!app()->runningInConsole()) {
            if (!$this->app->routesAreCached()) {
                $config = config('laravel-theme.screenshot_route');
                $router->group(array_merge(['namespace' => __NAMESPACE__], isset($config['options'])?$config['options']:[]), function ($router) use ($config){
                    $router->get((isset($config['url'])?$config['url']:'laravel-theme').'/{themeId}', 'ScreenshotController@show')->name($config['name']);
                });

            }
        }
    }
722394
public function boot(Router $router, Kernel $kernel)
    {
        $this->registerRouteFilters($router);

        $this->registerRouteMiddleware($router, $kernel);
    }
598032
public function boot(Router $router)
    {
        // Load auzo middleware
        $router->middleware('auzo.acl', AuzoToolsMiddleware::class);

        // Load auzo validation can rule
        Validator::extend('auzo.can', 'Kordy\AuzoTools\Services\ValidationRules@can');

        // Load auzo language files
        $this->loadTranslationsFrom(__DIR__.'/Translations', 'auzoTools');

        // Publish the configuration file to the application config folder
        $this->publishes([
            __DIR__.'/Config/auzo_tools.php' => config_path('auzo_tools.php'),
        ], 'config');

        // Publish translation files
        $this->publishes([
            __DIR__.'/Translations' => base_path('resources/lang/vendor/auzo-tools'),
        ], 'translations');
    }
1054891
public function boot()
    {
        $this->app['events']->listen('router.matched', function(){

            $this->app->resolving(function(FormRequest $request, $app){

                $request->setRequest($app['request']);

            });

        });
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
777339
public function boot(Router $router)
    {
        // Determine the package file path
        $centaurFilename = with(new ReflectionClass('Centaur\CentaurServiceProvider'))->getFileName();
        $centaurPath = dirname($centaurFilename);

        // Register the route middleware
        $router->aliasMiddleware('sentinel.guest', \Centaur\Middleware\SentinelGuest::class);
        $router->aliasMiddleware('sentinel.auth', \Centaur\Middleware\SentinelAuthenticate::class);
        $router->aliasMiddleware('sentinel.role', \Centaur\Middleware\SentinelUserInRole::class);
        $router->aliasMiddleware('sentinel.access', \Centaur\Middleware\SentinelUserHasAccess::class);

        // Register Artisan Commands
        $this->registerArtisanCommands();

        // Establish Views Namespace
        if (is_dir(base_path() . '/resources/views/centaur')) {
            // The package views have been published - use those views.
            $this->loadViewsFrom(base_path() . '/resources/views/centaur', 'Centaur');
        } else {
            // The package views have not been published. Use the defaults.
            $this->loadViewsFrom($centaurPath . '/../views', 'Centaur');
        }
    }
1298002
public function boot(Router $router)
    {
        if (!$this->app->routesAreCached()) {
            $router->group([
                'namespace' => $this->namespace,
            ], function (Router $router) {
                require __DIR__.'/../routes/web.php';
            });
        }
    }
377093
public function boot(Router $router): void
    {
        // Fix the specified key was too long error
        Schema::defaultStringLength(191);

        // Override presence verifier
        $this->app['validator']->setPresenceVerifier($this->app['cortex.foundation.presence.verifier']);

        // Early set application locale globaly
        $router->pattern('locale', '[a-z]{2}');
        $this->app['laravellocalization']->setLocale();

        $router->model('media', config('medialibrary.media_model'));

        // Map relations
        Relation::morphMap([
            'media' => config('medialibrary.media_model'),
        ]);

        // Load resources
        require __DIR__.'/../../routes/breadcrumbs/frontarea.php';
        require __DIR__.'/../../routes/breadcrumbs/tenantarea.php';
        $this->loadRoutesFrom(__DIR__.'/../../routes/web/adminarea.php');
        $this->loadRoutesFrom(__DIR__.'/../../routes/web/frontarea.php');
        $this->loadRoutesFrom(__DIR__.'/../../routes/web/tenantarea.php');
        $this->loadRoutesFrom(__DIR__.'/../../routes/web/managerarea.php');
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'cortex/foundation');
        $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'cortex/foundation');
        ! $this->app->runningInConsole() || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
        $this->app->runningInConsole() || $this->app->afterResolving('blade.compiler', function () {
            require __DIR__.'/../../routes/menus/managerarea.php';
            require __DIR__.'/../../routes/menus/tenantarea.php';
            require __DIR__.'/../../routes/menus/adminarea.php';
            require __DIR__.'/../../routes/menus/frontarea.php';
        });

        // Publish Resources
        ! $this->app->runningInConsole() || $this->publishResources();

        SessionFacade::extend('database', function ($app) {
            $table = $app['config']['session.table'];

            $lifetime = $app['config']['session.lifetime'];
            $connection = $app['config']['session.connection'];

            return new \Cortex\Foundation\Overrides\Illuminate\Session\DatabaseSessionHandler(
                $app['db']->connection($connection), $table, $lifetime, $app
            );
        });

        $this->app->booted(function () {
            if ($this->app->routesAreCached()) {
                require $this->app->getCachedRoutesPath();
            } else {
                $this->app['router']->getRoutes()->refreshNameLookups();
                $this->app['router']->getRoutes()->refreshActionLookups();
            }
        });

        Collection::macro('similar', function (Collection $newCollection) {
            return $newCollection->diff($this)->isEmpty() && $this->diff($newCollection)->isEmpty();
        });
    }
675250
public function boot()
    {
        $this->defineRoutes();
        $this->loadMigrations();
        $this->loadViews();
        $this->publishFactories();
        $this->publishConfigs();
        $this->publishTests();
        $this->publishViews();
    }
960428
public function boot(Router $router)
    {
        if (!$this->app->routesAreCached()) {
            require __DIR__ . '/../routes.php';
        }

        $this->loadMigrationsFrom(__DIR__ . '/../migrations');
        $router->aliasMiddleware('didbot.xml-http-request', \Didbot\DidbotApi\Middleware\XmlHttpRequest::class);
        $router->aliasMiddleware('didbot.throttle', \Didbot\DidbotApi\Middleware\ThrottleRequest::class);

        Passport::routes();


        Validator::extend('iso8601', function ($attribute, $value, $parameters, $validator) {

            return (preg_match('/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/',
                    $value) === 1);
        });

        Validator::extend('uuid', function ($attribute, $value, $parameters, $validator) {

            return (preg_match('/^[a-f\d]{8}-(?:[a-f\d]{4}-){3}[a-f\d]{12}$/i',
                    $value) === 1);

        });

        Validator::extend('geo', function ($attribute, $value, $parameters, $validator) {

            return (preg_match('/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/',
                    $value) === 1);

        });


        // Custom names for the Polymorphic relation on the Didbot\DidbotApi\Models\Source model
        Relation::morphMap([
            'client' => 'Laravel\Passport\Client',
            'token' => 'Laravel\Passport\Token',
        ]);
    }
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();
            }
        }
    }
640161
public function boot()
    {
        // Bootstrap handles
        $this->routeHandle();
        $this->configHandle();
        $this->langHandle();
        $this->viewHandle();
        $this->assetHandle();
        $this->migrationHandle();
        $this->cssHandle();
        $this->jsHandle();
    }
690647
public function boot(WsRouter $router)
    {
        foreach ($this->files as $tag => $files) {
            $this->publishes($files, $tag);
        }
        
        $this->namespace = str_replace('{{namespace}}', $this->getAppNamespace(), $this->namespace);
        
        if ($this->isInstalled()) {
            parent::boot($router);
        }
    }
550500
public function boot()
    {
        $router = $this->app->make(Router::class);
        $path   = realpath(__DIR__ . '/../../');
        $this->addConfigComponent('antares/foundation', 'antares/foundation', $path . '/resources/config');
        $this->addLanguageComponent('antares/foundation', 'antares/foundation', $path . '/resources/lang');
        $this->assignAreaTemplate();


        $this->appendWidgetsDefaultConfig();
        if (!$this->app->routesAreCached()) {
            require "{$path}/src/routes.php";
        }

        $router->aliasMiddleware('antares.forms', FormMiddleware::class);
        $router->aliasMiddleware('antares.ui-components', UIComponentsMiddleware::class);
        $this->runtime();


        $this->app->make('events')->fire('antares.ready');
        $this->app->make('events')->fire(new AntaresReady());
        $this->app->make('view')->composer(['antares/foundation::account.index', 'antares/logger::admin.devices.*'], \Antares\Users\Http\Handlers\AccountPlaceholder::class);

        if ($this->app->bound('antares.watchdog')) {
            $this->app->make('events')->subscribe(AfterExtensionOperation::class);
        }

        $this->app->make('view')->composer('antares/foundation::breadcrumbs.bootstrap3', function($view) {
            view()->share('breadcrumbs_data', array_get($view->getData(), 'breadcrumbs', []));
        });

        $this->app->make('events')->listen(LoadServiceProviders::class, function() {
            $widgets = $this->app->make('antares.ui-components.finder')->detectRoutes();

            $widgets->each(function($widget) {
                if (class_exists($widget)) {
                    $widget::routes();
                }
            });
        });
        $this->app->bind('languages', function($app) {
            return new Languages($app);
        });
    }
1085648
public function boot()
    {
        $this->publishConfig();

        $this->app->register(RouteServiceProvider::class);
        $this->app->register(MailServiceProvider::class);
    }