src/Traits/GuardedTrait.php
protected function resolvePermission(string $permission): string
    {
        if (defined('static::GUARD_NAMESPACE')) {
            //Yay! Isolation
            $permission = constant(get_called_class() . '::' . 'GUARD_NAMESPACE') . '.' . $permission;
        }

        return $permission;
    }
protected function resolvePermission(string $permission): string
    {
        if (defined('static::GUARD_NAMESPACE')) {
            //Yay! Isolation
            $permission = constant(get_called_class() . '::' . 'GUARD_NAMESPACE') . '.' . $permission;
        }

        return $permission;
    }
protected function resolvePermission ( string $ permission ) : string { if ( defined ( 'static::GUARD_NAMESPACE' ) ) { //Yay! Isolation $ permission = constant ( get_called_class ( ) . '::' . 'GUARD_NAMESPACE' ) . '.' . $ permission ; } return $ permission ; }
Automatically prepend permission name with local RBAC namespace.

@param string $permission
@return string
Automatically prepend permission name with local RBAC namespace .