Bootstrap the application for HTTP requests.

@return void
439384
public function bootstrap()
    {
        $this->router = $this->app['router'];
        $this->middlewareGroups = array_merge([], $this->middlewareGroups, config('routing.middlewareGroups', []));
        $this->routeMiddleware = array_merge([], $this->routeMiddleware, config('routing.routeMiddleware', []));

        foreach ($this->middlewareGroups as $key => $middleware) {
            $this->router->middlewareGroup($key, $middleware);
        }

        foreach ($this->routeMiddleware as $key => $middleware) {
            $this->router->middleware($key, $middleware);
        }
    }
806823
public function boot()
	        {


		$this->loadViewsFrom(__DIR__ . '/resources/views/pagekit', 'page');

		$this->publishes(
		                [
		                    __DIR__ . '/resources/views/pagekit' => resource_path('views/vendor/page'),
		                ], 'pagekit-views'
		            );

		$this->publishes(
		                [
		                    __DIR__ . '/resources/views/pagekit' => resource_path('views/pagekit'),
		                ], 'pagekit-theme'
		            );

		$this->publishes(
		                [
		                    __DIR__ . '/resources/views/pagekit' => resource_path('views/vendor/page')
		                ], 'pagekit-enveditor'
		            );

		$this->publishes(
		                [
		                    __DIR__ . '/public/css/pagekit' => public_path('css/pagekit'),
		                    __DIR__ . '/public/css/fonts' => public_path('css/pagekit/fonts'),
		                    __DIR__ . '/public/img' => public_path('img'),
		                    __DIR__ . '/public/assets' => public_path('assets')
		                ], 'pagekit-assets'
		            );

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

		if (!$this->app->runningInConsole()) :
		                include_once __DIR__ . '/Helpers/helper.php';
		endif;

		include_once __DIR__ . "/components/components.php";

		$this->pageTheme();

		$views = resource_path( "views/pagekit" );

		$this->loadViewsFrom($views, 'pagekit');


	}
1016157
public function boot()
	{
		$config = $this->app['config']->get('laravel-owm');

		// Loading routes file
		if ($config !== null) {

			if ($config['routes_enabled']) {
				require __DIR__ . '/Http/routes.php';
			}

		} else {
			require __DIR__ . '/Http/routes.php';
		}

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

	}
734960
public function boot()
    {
        $this->setResponseStaticInstances();

        Request::setAcceptParser($this->app[\Dingo\Api\Http\Parser\Accept::class]);

        $this->app->rebinding('api.routes', function ($app, $routes) {
            $app['api.url']->setRouteCollections($routes);
        });
    }
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'));
    }
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();
    }
679014
public function boot()
    {
        $this->loadRoutesFrom(__DIR__ . '/Routes/routes.php');
        $this->publishes([
            __DIR__ . '/Config/portmanat.php' => config_path('portmanat.php'),
        ]);
        $this->publishes([
            __DIR__ . '/Controller/PortmanatController.php' => app_path('Http/Controllers/PortmanatController.php'),
        ]);
    }
846148
public function boot()
    {
        View::share('users', User::all());
        View::share('comments', Comment::all());
        View::share('comment', Comment::first());
    }
1345653
public function boot()
    {
        $this->defineRoutes();
        $this->publishTests();
        $this->publishPublicAssets();
        $this->publishViews();
        $this->publishResourceAssets();
        $this->publishLanguages();
        $this->loadMigrations();
        $this->publishConfigFile();
    }
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,
            ]);
        }
    }
452455
public function boot()
    {
        $this->app['events']->listen(PermissionsModified::class, function ($event) {
            $this->app['cache']->forget('permissions');
        });

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

        $this->publishes([
            __DIR__ . '/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();
    }
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);
        }
    }
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();
    }
1072487
public function boot()
    {
        $this->registerRoutes();
        $this->registerPolicies();
        $this->registerMigrations();
        $this->registerFactories();
        $this->registerViews();
        $this->registerViewComposers();
        $this->registerListeners();
        $this->registerPublishes();
    }
1236643
public function boot()
    {
        $this->registerPolicies();

        $this->loadViewsFrom(__DIR__.'/Views', 'laralum_routes');
        $this->loadTranslationsFrom(__DIR__.'/Translations', 'laralum_routes');

        if (!$this->app->routesAreCached()) {
            require __DIR__.'/Routes/web.php';
        }

        // Make sure the permissions are OK
        PermissionsChecker::check($this->permissions);
    }
1336873
public function boot()
    {
        $this->publishes([
            __DIR__.'/Models' => app_path('Models'),

            __DIR__.'/Models/Concrete/_AbstractEloquentRepository.php' => file_exists(app_path('Models/Concrete/AbstractEloquentRepository.php')) ? app_path('Models/Concrete/_AbstractEloquentRepository.php') : app_path('Models/Concrete/AbstractEloquentRepository.php'),

            __DIR__.'/Models/Contracts/_RepositoryInterface.php' => file_exists(app_path('Models/Contracts/RepositoryInterface.php')) ? app_path('Models/Contracts/_RepositoryInterface.php') : app_path('Models/Contracts/RepositoryInterface.php')
        ]);
    }