The "booting" method of the model.

@return void
775438
public static function boot(): void
    {
        parent::boot();
        static::bootStapler();

        // Modify file name before saving.
        static::saving(function (CategoryIcon $categoryIcon) {
            if ($categoryIcon->isDirty('icon_file_name') && !is_null($categoryIcon->icon_file_name)) {
                $pathInfo = pathinfo(
                    $categoryIcon->icon->originalFileName()
                );

                if ($pathInfo && isset($pathInfo['extension'])) {
                    $newFilename = md5(time()) . '.' . $pathInfo['extension'];
                    $categoryIcon->icon->instanceWrite('file_name', $newFilename);
                }
            }
        });
    }
155706
public function boot()
    {
        $this->setDefaultTheme();
        $this->bootCustomBladeDirectives();
        $this->registerViews();
        $this->bootTranslations();
        $this->bootDebugbar();
    }
497108
public static function boot()
    {
        parent::boot();

        static::saving(function ($model) {
            $model->preSave();
        });

        static::saved(function ($model) {
            $model->postSave();
        });

        static::deleted(function ($model) {
            $model->preSave();
            $model->postDelete();
        });
    }
888391
public function boot()
  {
    if (!is_dir(Remember::$tokensDir)) {
      mkdir(Remember::$tokensDir, 0777, true);
    }

    $this->hasTokens();
    $this->configure();
    $this->start();
  }
573092
public function boot()
    {
        if ($this->booted) {
            return;
        }

        $this->setRenderer($this->renderer);

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

        /*
         * Routes
         */
        $this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');


        /*
         * Views
         */
        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'emailverification');
        $this->publishes([
            __DIR__ . '/../../resources/views' => resource_path('views/vendor/emailverification'),
        ], 'views');


        /*
         * Migrations
         */
        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
        $this->publishes([
            __DIR__ . '/../../database/migrations' => database_path('migrations')
        ], 'migrations');


        /*
         * Translations
         */
        $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'emailverification');
        $this->publishes([
            __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/emailverification'),
        ], 'translations');

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

    }
832596
public function boot()
    {
        $this->bootBlade();
        $this->bootDatatable();
        $this->bootModal();
        $this->bootMail();
        $this->bootValidator();
        $this->publish();
    }
1291770
public function boot()
    {
        $this->app->booting(function () {
            $loader = AliasLoader::getInstance();
            $loader->alias('SessionFallback', SessionFallbackFacade::class);
        });
        $this->publishes([
            __DIR__ . '/config/session_fallback.php' => config_path('session_fallback.php'),
        ]);
    }
727343
public function boot()
    {
        $this->registerMorphs();
        $this->setTablePrefix();
        $this->setUserModel();

        $this->registerAtGate();

        if ($this->runningInConsole()) {
            $this->publishMiddleware();
            $this->publishMigrations();
        }
    }
843603
public function boot()
    {
        $this->setSingular($this->getArgument('title'));
        $this->setPlural($this->getArgument('title'));

        $this->manager->boot($this);
    }
478622
public function boot()
    {
        if (config('authentication.enableRoutes') and ! $this->app->routesAreCached()) {
            require __DIR__ . '/Http/routes.php';
        }

        $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'authentication');
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'authentication');

        $this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'migrations');
    }
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;
            }
        });
    }
1094126
public function boot()
	{
		if ($this->booted)
		{
			return;
		}

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

		$this->booted = true;
	}
762571
public function boot()
    {
        //$this->setupConfiguration();

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

        //$this->setupTranslations();

        $this->setupViews();

        //$this->setupAssets();

        $this->setupMigrations();
        //$this->setupSeeds();
    }
751315
public function boot()
    {
        $this->registerResources();
        $this->registerServiceProviders();
        $this->registerAliases();
        $this->registerModuleRegistry();
        $this->registerCommands();
        $this->registerRoutesAndMiddlewares();
        $this->registerFields();
        $this->registerGeneratorStubs();
        $this->registerLocales();
        $this->registerViewComposers();
        $this->registerValidationRules();
        $this->registerAssets();

        $this->app->singleton( SecurityStrategy::class, function()
        {
            return $this->app->make( SessionSecurityService::class );
        } );

        $this->loadTranslationsFrom( __DIR__ . '/resources/lang', 'arbory' );
    }
1098785
public function boot()
    {
        $this->publishes(
            [
                $this->getConfigPath() => config_path('vanilla-integration.php'),
            ],
            'config'
        );
        $this->loadRoutesFrom(__DIR__ . '/../../../routes/routes.php');
        $this->registerHelpers();
    }
1247092
public function boot()
    {
        $this->capsule = $this->getCapsuleInstance();

        $this->{config('database.driver').'ConnectionSetup'}($this->capsule);

        $this->capsule->setAsGlobal();

        $this->bootPaginator();
    }