src/Database/Concerns/IsAbility.php
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();
            }
        });
    }
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();
            }
        });
    }
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 ( ) ; } } ) ; }
Boot the is ability trait.

@return void
Boot the is ability trait .