PHP Class Spatie\Permission\PermissionRegistrar

Afficher le fichier Open project: spatie/laravel-permission Class Usage Examples

Protected Properties

Свойство Type Description
$cache Illuminate\Contracts\Cache\Repository
$cacheKey string
$gate Illuminate\Contracts\Auth\Access\Gate

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Auth\Access\Gate $gate, Illuminate\Contracts\Cache\Repository $cache )
forgetCachedPermissions ( ) Forget the cached permissions.
registerPermissions ( ) : boolean Register the permissions.

Méthodes protégées

Méthode Description
getPermissions ( ) : Illuminate\Database\Eloquent\Collection Get the current permissions.

Method Details

__construct() public méthode

public __construct ( Illuminate\Contracts\Auth\Access\Gate $gate, Illuminate\Contracts\Cache\Repository $cache )
$gate Illuminate\Contracts\Auth\Access\Gate
$cache Illuminate\Contracts\Cache\Repository

forgetCachedPermissions() public méthode

Forget the cached permissions.

getPermissions() protected méthode

Get the current permissions.
protected getPermissions ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection

registerPermissions() public méthode

Register the permissions.
public registerPermissions ( ) : boolean
Résultat boolean

Property Details

$cache protected_oe property

protected Repository,Illuminate\Contracts\Cache $cache
Résultat Illuminate\Contracts\Cache\Repository

$cacheKey protected_oe property

protected string $cacheKey
Résultat string

$gate protected_oe property

protected Gate,Illuminate\Contracts\Auth\Access $gate
Résultat Illuminate\Contracts\Auth\Access\Gate