Property | Type | Description | |
---|---|---|---|
$cache | Illuminate\Contracts\Cache\Repository | ||
$cacheKey | string | ||
$gate | Illuminate\Contracts\Auth\Access\Gate |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Auth\Access\Gate $gate, Illuminate\Contracts\Cache\Repository $cache ) | ||
forgetCachedPermissions ( ) | Forget the cached permissions. | |
registerPermissions ( ) : boolean | Register the permissions. |
Method | Description | |
---|---|---|
getPermissions ( ) : Illuminate\Database\Eloquent\Collection | Get the current permissions. |
public __construct ( Illuminate\Contracts\Auth\Access\Gate $gate, Illuminate\Contracts\Cache\Repository $cache ) | ||
$gate | Illuminate\Contracts\Auth\Access\Gate | |
$cache | Illuminate\Contracts\Cache\Repository |
public forgetCachedPermissions ( ) |
protected getPermissions ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public registerPermissions ( ) : boolean | ||
return | boolean |
protected Repository,Illuminate\Contracts\Cache $cache | ||
return | Illuminate\Contracts\Cache\Repository |