Trait boot method

@return void
180556
protected static function bootNtrustUserTrait()
    {
        static::saved(function()
        {
            self::clearCache();
        });

        static::deleted(function($user)
        {
            self::clearCache($user);
        });

        if(method_exists(self::class, 'restored')) {
            static::restored(function($user)
            {
                self::clearCache($user);
            });
        }
    }
329945
protected static function boot() {
        parent::boot();

        if (config('filer.cleanup_on_delete')) {
            static::deleting(function ($file) {
                $path = config('filer.path.absolute') . "{$file->path}/{$file->filename}";

                if (is_file($path)) {
                    unlink($path);
                }
            });
        }

        // Whenever a new model is created in the database, we add a hash
        static::creating(function ($model) {
            $model->hash = $model->generateHash();
        });
    }
77404
public function boot()
    {       
		// publish views
        $this->publishes([__DIR__.'/resources/views' => resource_path('views/backend/geomanager')], 'views');
        // publish GeoTemplates trait
        $this->publishes([__DIR__.'/app/GeoTemplates.php' => app_path('PageTemplates.php')], 'trait');
        // publish migrations
        $this->publishes([__DIR__.'/database/migrations' => database_path('migrations')], 'migrations');
		// publish template crud
        $this->publishes([__DIR__.'/resources/views/crud/fields' => resource_path('views/backend/crud/fields')], 'crud-template');
		// publish langs
        $this->publishes([__DIR__.'/resources/views/lang' => resource_path('views/lang')], 'langs');
    }
417434
private function boot()
    {
        if ($this->booted) {
            return;
        }

        $this->booted = true;

        foreach ($this->finder->findAllTemplates() as $reference) {
            $this->addTemplate($reference);
        }

        foreach (array_keys($this->bundle_paths) as $name) {
            if (false !== ($resolved_path = $this->resolveResourcePath('@' . $name))) {
                $this->aliases['@' . $name] = $resolved_path;
                $this->addPath($resolved_path);
            }
        }

        $this->profiler->set('bundles', $this->aliases);
        $this->profiler->set('templates', $this->templates);
    }
152521
protected function booting()
    {
        $this->setInstance();

        $this->bind('Sun\Contracts\Container\Container', $this->getContainer());

        $this->bind('Sun\Contracts\Application', $this);

        $this->config = $this->make('Sun\Support\Config');
    }
1132019
public function boot()
    {
        // Publish config files
        $this->publishes([
            __DIR__.'/../config/config.php' => app()->basePath() . '/config/entrust.php',
        ]);

        // Register commands
        $this->commands('command.entrust.migration');

        // Register blade directives
        $this->bladeDirectives();
    }
526733
protected function boot()
    {
        $configLoader = new ConfigLoader($this->environment);
        $this->di->setShared('config-loader', $configLoader);
        $id = Bootstrap::CONFIG . '_' . $this->name . '_' . $this->environment;
        $cache = null;
        if ($this->cacheable === true) {
            $cache = apc_fetch($id);
        }

        if ($cache === false || $cache === null) {
            $this->config = $configLoader->create($this->pathConfig);

            $this->config->merge(
                new Config(['environment' => $this->environment])
            );
            if ($cache === false) {
                apc_add($id, $this->config);
            }
        } else {
            $this->config = $cache;
        }
    }
761907
public function boot()
	{
		if ($this->booted) return;

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

		$this->bootApplication();
	}
1115909
public function boot() {
    $this->publishConfig();
    $this->publishMigration();
    $this->publishAssets();
    $this->loadViewsFrom(__DIR__ . '/views', 'taxonomy');
    $this->loadTranslationsFrom(__DIR__ . '/lang', 'taxonomy');
  }
888391
public function boot()
  {
    if (!is_dir(Remember::$tokensDir)) {
      mkdir(Remember::$tokensDir, 0777, true);
    }

    $this->hasTokens();
    $this->configure();
    $this->start();
  }
1331715
public function boot()
    {
        /** @var AspectContainer $aspectContainer */
        $aspectContainer = $this->app->make(AspectContainer::class);

        // Let's collect all aspects and just register them in the container
        $aspects = $this->app->tagged('goaop.aspect');
        foreach ($aspects as $aspect) {
            $aspectContainer->registerAspect($aspect);
        }
    }
199854
public static function boot()
    {
        parent::boot();

        self::creating(function ($user) {
            if (!$user->verify_code) {
                $user->verify_code = self::generateVerifyCode();
            }
        });
    }
1339262
protected static function boot()
    {
        parent::boot();

        static::creating(function (Model $model) {
            $model->{$model->getKeyName()} = Uuid::uuid1()->toString();
        });
    }
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');
    }
526665
protected static function boot()
    {
        $class = get_called_class();

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

        foreach (get_class_methods($class) as $method) {
            if (preg_match('/^get(.+)Attribute$/', $method, $matches)) {
                if (static::$snakeAttributes) $matches[1] = Str::snake($matches[1]);

                static::$mutatorCache[$class][] = lcfirst($matches[1]);
            }
        }

        static::bootTraits();
    }
981201
public function boot()
    {
        foreach ($this->getFiles() as $filename) {
            $path = $this->path . '/' . $filename;
            
            if (file_exists($path)) {
                require $path;
            };
        }
    }
120384
protected static function boot()
    {
        parent::boot();

        static::deleting(function ($comment) {
            $comment->where('parent_id', $comment->id)->get(['id'])->each->delete();
        });
    }