Boot the application events.

@param Dashboard $dashboard
435160
public function boot(Dashboard $dashboard)
    {
        View::composer('platform::layouts.dashboard', MainMenuComposer::class);
        View::composer('platform::container.systems.index', SystemMenuComposer::class);

        $dashboard
            //->registerPermissions($this->registerPermissionsMain())
            ->registerPermissions($this->registerPermissionsSystems());

        $dashboard->registerGlobalSearch([
            //...Models
        ]);
    }
1098795
public function boot()
    {
        $viewPath = __DIR__.'/../resources/views';
        $this->loadViewsFrom($viewPath, 'laravel-tournaments');

        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
        $this->loadTranslationsFrom(__DIR__.'/../translations', 'laravel-tournaments');

        $this->publishes([__DIR__.'/../database/seeds' => $this->app->databasePath().'/seeds'], 'laravel-tournaments');
        $this->publishes([__DIR__.'/../database/factories' => $this->app->databasePath().'/factories'], 'laravel-tournaments');
        $this->publishes([__DIR__.'/../resources/assets' => public_path('vendor/laravel-tournaments')], 'laravel-tournaments');
        $this->publishes([__DIR__.'/../config/laravel-tournaments.php' => config_path('laravel-tournaments.php')], 'laravel-tournaments');
    }
388463
public function boot()
    {
        // Load view
        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'team');

        // Load translation
        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'team');

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

        // Call pblish redources function
        $this->publishResources();

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

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

        $this->app->rebinding('api.routes', function ($app, $routes) {
            $app['api.url']->setRouteCollections($routes);
        });
    }
350503
public function boot()
    {
        $this->loadConfig();
        $this->registerExceptionHandler();
        $this->registerProviders();
        $this->registerAliases();
        $this->registerScaraMasterSessionToken();
    }
183532
public function boot()
    {
        $this->tryRequireHelpers(self::ON_BOOT);
        $this->tryRegisterProviders(self::ON_BOOT);

        // Events
        $events = $this->app->make('events');

        foreach ($this->listens() as $event => $listeners) {
            foreach ($listeners as $listener) {
                $events->listen($event, $listener);
            }
        }

        foreach ($this->subscribe as $subscriber) {
            $events->subscribe($subscriber);
        }

        // Publish
        if (null !== $this->rootDir) {
            $this->bootConfigFiles();
            foreach ($this->viewDirs as $dirName => $namespace) {
                $viewPath = $this->resolvePath('viewsPath', compact('dirName'));
                $this->loadViewsFrom($viewPath, $namespace);
                $this->publishes([$viewPath => $this->resolvePath('viewsDestinationPath', compact('namespace'))], 'views');
            }
            foreach ($this->assetDirs as $dirName => $namespace) {
                $this->publishes([$this->resolvePath('assetsPath', compact('dirName')) => $this->resolvePath('assetsDestinationPath', compact('namespace'))], 'public');
            }
            foreach ($this->migrationDirs as $dirPath) {
                $this->publishes([$this->getDatabasePath($dirPath) => $this->resolvePath('migrationDestinationPath')], 'database');
            }
            foreach ($this->seedDirs as $dirPath) {
                $this->publishes([$this->getDatabasePath($dirPath) => $this->resolvePath('seedsDestinationPath')], 'database');
            }
        }

        $this->tryRequireHelpers(self::ON_BOOTED);
        $this->tryRegisterProviders(self::ON_BOOTED);

        return $this->app;
    }
889044
protected static function boot()
    {
        parent::boot();

        self::saving(
            function ($theme) {
                Event::fire('theme:saving', [$theme]);
            }
        );

        self::saved(
            function ($theme) {
                Event::fire('theme:saved', [$theme]);
            }
        );

        self::updating(
            function ($theme) {
                Event::fire('theme:updating', [$theme]);
            }
        );

        self::creating(
            function ($theme) {
                Event::fire('theme:creating', [$theme]);
            }
        );

        self::created(
            function ($theme) {
                Event::fire('theme:created', [$theme]);
            }
        );

        self::updated(
            function ($theme) {
                Event::fire('theme:updated', [$theme]);
            }
        );

        self::deleting(
            function ($theme) {
                Event::fire('theme:deleting', [$theme]);
            }
        );

        self::deleted(
            function ($theme) {
                Event::fire('theme:deleted', [$theme]);
            }
        );
    }
1161912
public function boot()
    {
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'bootstrap');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../resources/views' => resource_path('views/vendor/bootstrap'),
            ], 'views');
        }
    }
1054891
public function boot()
    {
        $this->app['events']->listen('router.matched', function(){

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

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

            });

        });
    }
473073
public function boot()
    {
        $localeChangedEvent = class_exists('\\Illuminate\\Foundation\\Events\\LocaleUpdated')
            ? \Illuminate\Foundation\Events\LocaleUpdated::class
            : 'locale.changed';

        $this->app['events']->listen($localeChangedEvent, function () {
            $this->setLocale();
        });

        $this->setLocale();
    }
189343
public function boot()
    {
        $this->loadTranslationsFrom(__DIR__.'/Translations', 'laralum_dashboard');

        $this->loadViewsFrom(__DIR__.'/Views', 'laralum_dashboard');

        if (!$this->app->routesAreCached()) {
            require __DIR__.'/Routes/web.php';
        }
    }
1045257
public function boot()
    {
        if ($this->booted) {
            return;
        }

        parent::boot();

        foreach ($this->events as $eventsNames) {
            $this->forwardEventsToPushServer($eventsNames);
        }

        $this->events = [];
    }
788437
public function startup($event)
    {
        // startup-event
        $_event = new Event('Component.Manager.startup', $this, [
        ]);
        $this->Controller->eventManager()->dispatch($_event);

        if ($this->isPrefix()) {
            $this->_runCallback("startup", $event);

            // startup-event with Prefix
            $this->_runEvent("startup");
        }
    }
329492
public function boot()
	{
		$this->app['events']->listen('router.matched', function()
		{
			$this->app->resolving(function(FormRequest $request, $app)
			{
				$this->initializeRequest($request, $app['request']);

				$request->setContainer($app)
                        ->setRedirector($app['Illuminate\Routing\Redirector']);
			});
		});
	}
536236
protected static function boot()
    {
        parent::boot();

        static::saving(function ($model) {
            if (! $model->interval) {
                $model->interval = 'month';
            }

            if (! $model->interval_count) {
                $model->interval_count = 1;
            }
        });
    }
331507
public function boot()
    {
        error_reporting(-1); // E_ALL
        set_exception_handler([$this, 'handleException']);
        set_error_handler([$this, 'handleError']);
        register_shutdown_function([$this, 'handleShutdown']);
        if (config('app.env') != 'testing') {
            ini_set('display_errors', 'Off');
        }
    }
761907
public function boot()
	{
		if ($this->booted) return;

		array_walk($this->serviceProviders, function($p) { $p->boot(); });

		$this->bootApplication();
	}