Boot all of the bootable traits on the model.

@return void
554165
protected static function bootTraits()
    {
        foreach (Helper::classUsesRecursive(get_called_class()) as $trait) {
            if (method_exists(get_called_class(), $method = 'boot' . Helper::classBaseName($trait))) {
                forward_static_call([get_called_class(), $method]);
            }
        }
    }
843603
public function boot()
    {
        $this->setSingular($this->getArgument('title'));
        $this->setPlural($this->getArgument('title'));

        $this->manager->boot($this);
    }
1207532
public function boot()
    {
        if (config('getrets.enable_example')) {
            $this->loadRoutesFrom(realpath(__DIR__.'/../../routes/web.php'));
        }

        $this->loadTranslationsFrom(realpath(__DIR__.'/../../resources/lang'), 'GetRETS');
        $this->publishes([realpath(__DIR__.'/../../resources/lang') => resource_path('lang/vendor/timitek')], 'translations');

        $this->loadViewsFrom(realpath(__DIR__.'/../../resources/views'), 'GetRETS');
        $this->publishes([realpath(__DIR__.'/../../resources/views') => base_path('resources/views/vendor/timitek/getrets')], 'views');

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

        $this->publishes([realpath(__DIR__.'/../../resources/assets') => public_path('assets')], 'public');

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

        $this->publishes([realpath(__DIR__.'/../../database/seeds') => database_path('seeds')], 'seeds');
    }
651890
public function boot()
    {
        // Set config file
        $this->publishes([
            __DIR__.'/config/panel.php'      => config_path('panel.php'),
            __DIR__.'/config/panel/User.yml' => config_path('panel/User.yml'),
        ], 'config');

        // Set the stylesheets around
        $this->publishes([
            __DIR__.'/assets/css/panel.css'             => public_path('css/panel.css'),
            __DIR__.'/resources/assets/sass/panel.scss' => resource_path('assets/sass/panel.scss'),
        ], 'public');

        // Load routes
        if (!$this->app->routesAreCached()) {
            require __DIR__.'/http/routes.php';
        }

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

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

        // Load views
        $this->loadViewsFrom(__DIR__.'/views', 'panel');
    }
1032668
public function boot()
    {
        $this->bootAuthen();

        $path = \realpath(__DIR__.'/../../');

        $this->addConfigComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/config");
        $this->addLanguageComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/lang");
        $this->addViewComponent('orchestra/foundation', 'orchestra/foundation', "{$path}/resources/views");
    }
839901
public function boot()
    {
        $this->setFingerprint(mt_rand());

        $this->setArguments($this->getMessages());
        $this->setSingular($this->getArgument('title'));
        $this->setPlural($this->getArgument('title'));
        // $this->setValue($this->getArgument('default'));

        $this->manager->boot($this);
    }
299823
public function boot()
    {
        $path = __DIR__ . '/../resources/lang/en/exceptionmessages.php';

        $this->publishes([
            $path => resource_path("lang/vendor/{$this->namespace}/en/exceptionmessages.php"),
        ]);

        $this->loadTranslationsFrom($path, $this->namespace);
    }
164141
public function boot()
    {
        Validator::extend('uuid', function ($attribute, $value, $parameters, $validator) {
            return Uuid::validate($value);
        });
    }
1366936
protected static function boot(): void
    {
        parent::boot();

        /**
         * Attach to the 'creating' Model Event to provide a UUID
         * for the `id` field (provided by $model->getKeyName())
         */
        static::creating(function ($model) {
            if (!isset($model->attributes['id'])) {
                $model->attributes['id'] = Uuid::uuid4()->toString();
            }

            /** @var HCUuidModel $model */
            $model->{$model->getKeyName()} = $model->attributes['id'];
        });
    }
719773
public function boot()
  {
      $this->loadViewsFrom(__DIR__.'/resources/views', 'pagination');

      if ($this->app->runningInConsole()) {
          $this->publishes([
              __DIR__.'/resources/views' => $this->app->basePath('resources/views/vendor/pagination'),
          ], 'laravel-pagination');
      }
  }
58793
protected static function boot()
	{
		$class = get_called_class();

		static::$mutatorCache[$class] = array();

		// Here we will extract all of the mutated attributes so that we can quickly
		// spin through them after we export models to their array form, which we
		// need to be fast. This will let us always know the attributes mutate.
		foreach (get_class_methods($class) as $method)
		{
			if (preg_match('/^get(.+)Attribute$/', $method, $matches))
			{
				if (static::$snakeAttributes) $matches[1] = snake_case($matches[1]);

				static::$mutatorCache[$class][] = lcfirst($matches[1]);
			}
		}
	}
748173
public function boot()
    {
        if (Config::get('images.dynamic_image_sizes') !== false) {
            $this->add_filter('media_meta', 'add_image_sizes_meta_to_media');
            $this->add_filter('attachment_fields_to_edit', 'add_intermediate_mgmt_fields');
            $this->add_filter('attachment_fields_to_save', 'handle_delete_intermediate_ajax');

            $this->add_action('admin_enqueue_scripts', 'enqueue_image_admin_scripts');
        }
    }
223826
public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__ . '/../config/config.php' => config_path('wallet.php'),
            ], 'config');

            $this->publishes([
                __DIR__ . '/../resources/migrations/' => database_path('migrations'),
            ], 'migrations');
        }
    }
162551
public function boot()
    {
        $langPath = __DIR__.'/../Resources/lang';
        $this->loadTranslationsFrom($langPath, 'site');

        $viewPath = __DIR__.'/../Resources/views';
        $this->loadViewsFrom($viewPath, 'site');
    }
787254
protected static function boot()
    {
        parent::boot();

        static::creating(function (self $model) {
            $model->setAttribute('created_at', Carbon::now());
        });
    }
650581
public function boot()
	{
		$this->app['validator']->resolver( function( $translator, $data, $rules, $messages = [], $customAttributes = []) {
			return new ValidatorEx( $translator, $data, $rules, $messages, $customAttributes );
		});

		$this->loadTranslationsFrom(realpath(__DIR__.'/../resources/lang/'), 'censor');

		Event::listen(LocaleUpdated::class, function(LocaleUpdated $locale){
			$this->app['ruler']->setLocale($locale->locale);
		});
	}
689766
protected function boot()
    {
        if ($this->booted) {
            return;
        }

        fire_callbacks($this->bootCallbacks, $this);

        $this->booted = true;
    }