Boot the service provider.

@return void
435928
public function boot()
    {
        /**
         * Register the "vat_number" validation rule.
         */
        LaravelValidator::extend('vat_number', function ($attribute, $value, $parameters, $validator) {
            $rule = new Rules\VatNumber;
            return $rule->passes($attribute, $value);
        });

         /**
         * Register the "country_code" validation rule.
         */
        LaravelValidator::extend('country_code', function ($attribute, $value, $parameters, $validator) {
            $rule = new Rules\Country;
            return $rule->passes($attribute, $value);
        });
    }
687619
public function boot()
    {
        $this->_registerDebugbar();
        $this->publishes([
            __DIR__.'/config/config.php' => config_path('widgetize.php'),
        ]);

        $this->defineDirectives();
        $this->loadViewsFrom($this->app->basePath().'/app/Widgets/', 'Widgets');
    }
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');
    }
420568
public function boot()
    {
        if (!$this->booted) {
            foreach ($this->container->getProviders() as $provider) {
                $provider->boot($this);
            }

            $this->booted = true;
        }
    }
242487
public function boot() {

        $this->setupConfiguration();

        $this->setupMigrations();
        $this->setupSeeds();

        $this->setupRoutes($this->app->router);

        $this->setupTranslations();

        $this->setupViews();

        $this->setupAssets();
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
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);
        }
    }
832596
public function boot()
    {
        $this->bootBlade();
        $this->bootDatatable();
        $this->bootModal();
        $this->bootMail();
        $this->bootValidator();
        $this->publish();
    }
472681
public function boot()
    {
        $this->publishConfiguration();

        $this->loadConfig();

        $this->loadMigrations();

        $this->loadRoutes();

        $this->loadViews();
    }
516231
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerObservers();
        $this->registerPublishes();
        $this->registerMigrations();
        $this->registerListeners();
    }
288070
public function boot()
    {
        if (!$this->isLumen()) {
            $this->publishes([
                $this->getConfigPath() => config_path('acl.php'),
            ], 'config');
        }

        $this->app->make(DoctrineManager::class)->onResolve(function () {
            $this->definePermissions(
                $this->app->make(Gate::class),
                $this->app->make(PermissionManager::class)
            );
        });
    }
1114554
public function boot()
    {
        $this->loadTranslationsFrom(__DIR__ . '/../../translations', 'verification');
        $this->loadViewsFrom(__DIR__ . '/../../views', 'verification');

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

        $this->publishes([
            __DIR__ . '/../../translations' => resource_path('lang/vendor/verification'),
        ], 'translations');

        $this->publishes([
            __DIR__ . '/../../views' => resource_path('views/vendor/verification'),
        ], 'views');
    }
823208
public function boot()
    {
        $configFile = realpath(__DIR__ . '/../config/json-api.php');

        $this->mergeConfigFrom($configFile, 'json-api');
        $this->publishes([
            $configFile => config_path('json-api.php'),
        ]);

        if (config('json-api.routes.configure', false)) {
            if (!$this->app->routesAreCached()) {
                Route::group([], function (Router $router) {
                    require __DIR__ . '/../routes/api.php';
                });
            }
        }
    }
1067653
public function boot()
    {
        $events = app('events');

        foreach ($this->listen as $event => $listeners) {
            foreach ($listeners as $listener) {
                $events->listen($event, $listener);
            }
        }
    }
1054090
public function boot()
    {
        // Public config
        $this->publishes([
            __DIR__.'/config/commands.php' => config_path('commands.php'),
        ], 'config');


        if ($this->app->runningInConsole()) {
            $this->commands([
                CreateUserCommand::class,
                CreateRoleCommand::class
            ]);
        }
    }
173733
public function boot()
    {
        $this->initMigrations();
        $this->initPermissions();
        $this->initMiddlewares();
        $this->initDirectives();
        $this->initUserObserver();
        $this->initCommands();
    }
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');
        }
    }