Boot the tenantable trait for the model.

@return void
172849
public static function bootTenantable()
    {
        if ($tenant = config('rinvex.tenants.active')) {
            static::addGlobalScope('tenantable', function (Builder $builder) use ($tenant) {
                $builder->whereHas('tenants', function (Builder $builder) use ($tenant) {
                    $key = $tenant instanceof Model ? $tenant->getKeyName() : (is_int($tenant) ? 'id' : 'slug');
                    $value = $tenant instanceof Model ? $tenant->{$key} : $tenant;
                    $builder->where($key, $value);
                });
            });

            static::saved(function (self $model) use ($tenant) {
                $model->attachTenants($tenant);
            });
        }

        static::deleted(function (self $model) {
            $model->tenants()->detach();
        });
    }
359762
public function boot()
    {
        // Load configs files and publish them
        $path = __DIR__ . '/../../config';
        $this->loadYamlFrom($path, $this->namespace, $this->publish);

        // Load more configs and aliases
        parent::boot();
    }
172994
public function boot()
    {
        parent::boot();

        $this->registerModelsBindings();

        // Publishes
        $this->publishConfig();

        Tracker::$runsMigrations ? $this->loadMigrations() : $this->publishMigrations();
    }
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();
    }
779275
public function boot()
    {
        foreach ($this->cachedModels as $cachedModel) {
            $closure = function ($model) {
                if ($model instanceof Cacheable) {
                    foreach ($model->getCacheKeys() as $key) {
                        $this->app['cache.store']->forget($key);
                    }
                }
            };

            $cachedModel::saved($closure);
            $cachedModel::deleted($closure);
        }
    }
155706
public function boot()
    {
        $this->setDefaultTheme();
        $this->bootCustomBladeDirectives();
        $this->registerViews();
        $this->bootTranslations();
        $this->bootDebugbar();
    }
1209686
public function boot()
    {
        if (!class_exists('CreateTokensTable')) {
            // Publish the migration
            $timestamp = date('Y_m_d_His', time());
            $this->publishes([
                __DIR__ . '/../../database/migrations/create_tokens_table.php.stub' => database_path('migrations/' . $timestamp . '_create_tokens_table.php'),
            ], 'migrations');
        }
    }
482715
public function boot()
    {
        Relation::morphMap([
            'SodaUser' => User::class,
        ]);

        $this->app->config->set('laratrust.user_models.user', User::class);
        $this->app->config->set('laratrust.models.role', Role::class);
        $this->app->config->set('laratrust.models.permission', Permission::class);
    }
375714
public function boot()
    {
        if ($this->isLumen() === false) {
            $this->publishes([
                __DIR__ . '/../../config/hashids.php' => config_path('hashids.php'),
            ]);

            // Add 'Assets' facade alias
            AliasLoader::getInstance()->alias('Hashids', 'Torann\Hashids\Facade');
        }
    }
120384
protected static function boot()
    {
        parent::boot();

        static::deleting(function ($comment) {
            $comment->where('parent_id', $comment->id)->get(['id'])->each->delete();
        });
    }
644419
public static function bootIsAbility()
    {
        BaseTenantScope::register(static::class);

        static::creating(function ($ability) {
            Models::scope()->applyToModel($ability);

            if (is_null($ability->title)) {
                $ability->title = AbilityTitle::from($ability)->toString();
            }
        });
    }
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();
    }
494015
public function boot() {
        $this->commands(BlueprintListCommand::class);
        $this->commands(BlueprintDetailCommand::class);
        $this->commands(FieldSetDetailCommand::class);
        $this->commands(PackageMigrateCommand::class);
    }
812813
public function boot()
    {
        if ( ! $this->app->environment('production'))
        {
            // This is for model and migration templates
            // we use blade engine to generate these files
            $this->loadViewsFrom(dirname(__DIR__) . '/resources/templates', '_transit');

            $this->publishes([
                dirname(__DIR__) . '/resources/config.php' => config_path('transit.php')
            ]);
        }
    }
787254
protected static function boot()
    {
        parent::boot();

        static::creating(function (self $model) {
            $model->setAttribute('created_at', Carbon::now());
        });
    }
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');
        }
    }
452804
public function boot()
    {
        $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
        $socialite->extend(
            'eveonline',
            function ($app) use ($socialite) {
                $config = $app['config']['services.eveonline'];
                return $socialite->buildProvider(EveOnlineSocialiteProvider::class, $config);
            }
        );
    }