Bootstrap any application services.

@return void
162551
public function boot()
    {
        $langPath = __DIR__.'/../Resources/lang';
        $this->loadTranslationsFrom($langPath, 'site');

        $viewPath = __DIR__.'/../Resources/views';
        $this->loadViewsFrom($viewPath, 'site');
    }
157021
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerTranslations();
        $this->registerObservers();
        $this->registerViewComposers();
    }
460797
public function boot()
    {
        $this->commands([Crud::class]);
        $this->publishes([
            __DIR__.'/../Config/config.php' => config_path('crud.php'),
            __DIR__.'/../classic-templates' => base_path('resources/views/vendor/crud/classic-templates'),
            __DIR__.'/../single-page-templates' => base_path('resources/views/vendor/crud/single-page-templates'),
        ],'nvd');
    }
1345653
public function boot()
    {
        $this->defineRoutes();
        $this->publishTests();
        $this->publishPublicAssets();
        $this->publishViews();
        $this->publishResourceAssets();
        $this->publishLanguages();
        $this->loadMigrations();
        $this->publishConfigFile();
    }
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');
    }
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');
    }
302463
public function boot()
    {
        $this->loadRoutesFrom(Core::modPath('routes.php'));
        $this->loadMigrationsFrom(Core::modPath('database/migrations'));
        $this->loadViewsFrom(Core::modPath('resources/views'), 'acl');

        // php artisan vendor:publish --tag=acl-config
        $this->publishes([Core::modPath('/config/acl.php') => config_path('acl.php')], 'acl-config');

        // php artisan vendor:publish --tag=acl-buttons
        $this->publishes([Core::modPath('resources/views/buttons') => resource_path('views/acl/buttons')], 'acl-buttons');

        // php artisan vendor:publish --tag=acl-migrations
        $this->publishes([Core::modPath('database/publish') => database_path('migrations')], 'acl-migrations');

        // php artisan vendor:publish --tag=acl-cruds
        $this->publishes([Core::modPath('resources/views/users') => resource_path('views/acl/cruds/users')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/users-permissions') => resource_path('views/acl/cruds/users-permissions')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/groups') => resource_path('views/acl/cruds/groups')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/groups-permissions') => resource_path('views/acl/cruds/groups-permissions')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/messages') => resource_path('views/acl/cruds/messages')], 'acl-cruds');
        $this->publishes([Core::modPath('resources/views/document.blade.php') => resource_path('views/acl/cruds/document.blade.php')], 'acl-cruds');

        if ($this->app->runningInConsole()) {
            $this->commands([
                \Acl\Console\Commands\UserCreate::class,
                \Acl\Console\Commands\UserOn::class,
                \Acl\Console\Commands\UserOff::class,
                \Acl\Console\Commands\UserPassword::class,
                \Acl\Console\Commands\UserPanelOn::class,
                \Acl\Console\Commands\UserPanelOff::class,
            ]);
        }

        \Acl\Core::registerPolicies();

        \Acl\Core::loadBladeDirectives();
    }
430983
public function boot()
    {
        $this->app['events']->listen($this->failedEvent, function ($event) {
            if (isset($event->user) && is_a($event->user, 'Illuminate\Database\Eloquent\Model')) {
                $event->user->notify(new FailedLoginNotification(
                    $this->app['request']->ip()
                ));
            }
        });

        $this->app['events']->listen($this->successEvent, function ($event) {
            if (isset($event->user) && is_a($event->user, 'Illuminate\Database\Eloquent\Model')) {
                $event->user->notify(new SuccessfulLoginNotification(
                    $this->app['request']->ip()
                ));
            }
        });
    }
621728
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerPublishes();
        $this->registerRoutes();
        $this->registerViews();
        $this->registerFormComponents();
        $this->registerBladeDirectives();
    }
14376
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->loadMigrationsFrom(__DIR__.'/../database/migrations');

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

        if (! class_exists('CreateMonitorsTable')) {
            $timestamp = date('Y_m_d_His', time());

            $this->publishes([
                __DIR__.'/../database/migrations/create_monitors_table.php.stub' => database_path('migrations/'.$timestamp.'_create_monitors_table.php'),
            ], 'migrations');
        }
    }
33647
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $config = $this->app->config['eloquent-viewable'];

            $this->publishes([
                __DIR__.'/../config/eloquent-viewable.php' => $this->app->configPath('eloquent-viewable.php'),
            ], 'config');

            if (! class_exists('CreateViewsTable')) {
                $timestamp = date('Y_m_d_His', time());

                $this->publishes([
                    __DIR__.'/../migrations/create_views_table.php.stub' => database_path("/migrations/{$timestamp}_create_views_table.php"),
                ], 'migrations');
            }
        }
    }
846148
public function boot()
    {
        View::share('users', User::all());
        View::share('comments', Comment::all());
        View::share('comment', Comment::first());
    }
981003
public function boot()
    {
        $this->loadRoutesFrom(__DIR__.'/routes.php');
        $this->loadViewsFrom(__DIR__.'/../views', 'larrock');
        $this->loadTranslationsFrom(__DIR__.'/../lang', 'larrock');
        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');

        $public_path = public_path();
        if (substr($public_path, -6) === 'public') {
            $public_path .= '_html';
        }

        $this->publishes([
            __DIR__.'/../lang' => resource_path('lang/vendor/larrock'),
        ], 'lang');
        $this->publishes([
            __DIR__.'/../views/front' => base_path('resources/views/vendor/larrock/front'),
        ], 'views-front-core');
        $this->publishes([
            __DIR__.'/../views/admin' => base_path('resources/views/vendor/larrock/admin'),
        ], 'views-admin-core');
        $this->publishes([
            __DIR__.'/../assets/public_html' => $public_path,
            __DIR__.'/../assets/gulpfile' => base_path(),
            __DIR__.'/../assets/bower' => base_path(),
        ], 'assets');
        $this->publishes([
            __DIR__.'/../assets/policy' => $public_path,
        ], 'doc');
        $this->publishes([
            __DIR__.'/../config/larrock-core-adminmenu.php' => config_path('larrock-core-adminmenu.php'),
            __DIR__.'/../config/larrock-sitemap.php' => config_path('larrock-sitemap.php'),
            __DIR__.'/../config/larrock-to-dashboard.php' => config_path('larrock-to-dashboard.php'),
            __DIR__.'/../config/larrock.php' => config_path('larrock.php'),
        ], 'config');

        \Event::subscribe('Larrock\Core\Listeners\CoreEventSubscriber');
    }
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');
        }
    }
687756
public function boot()
    {

        $this->loadViewsFrom(__DIR__.'/../../views', 'expendable');
        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'expendable');
        $this->loadMigrationsFrom(__DIR__.'/../../database/migrations/');


        $this->publishes([
            __DIR__.'/../../config/config.php'    => config_path('expendable.php'),
            __DIR__.'/../../database/seeds/'      => base_path('/database/seeds'),
        ]);


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

        $autoLoaderListener = new \Distilleries\Expendable\Register\ListenerAutoLoader(config('expendable.listener'));
        $autoLoaderListener->load();

    }
28045
public function boot()
    {
        $this->publishes([
            $this->basepath . "config" . DIRECTORY_SEPARATOR . EabUtilServiceProvider::CONFIG_FILENAME . ".php" => config_path(EabUtilServiceProvider::CONFIG_FILENAME . '.php')
        ]);
    }
620368
public function boot()
    {
        if ( ! $this->app->environment('production'))
        {
            $this->publishes([
                __DIR__ . '/resources/config.php' => config_path('tracker.php')
            ]);

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