Méthode | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Permission $model ) | ||
create ( string $permissionName, string $readableName = null ) : Artesaos\Defender\Contracts\Permission | Create a new permission using the given name. | |
getActivesByUser ( $user ) : Illuminate\Database\Eloquent\Collection | ||
getByRoles ( array $rolesIds ) : Illuminate\Database\Eloquent\Collection |
public __construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Permission $model ) | ||
$app | Illuminate\Contracts\Foundation\Application | |
$model | Artesaos\Defender\Contracts\Permission |
public getActivesByUser ( $user ) : Illuminate\Database\Eloquent\Collection | ||
$user | ||
Résultat | Illuminate\Database\Eloquent\Collection |
public getByRoles ( array $rolesIds ) : Illuminate\Database\Eloquent\Collection | ||
$rolesIds | array | |
Résultat | Illuminate\Database\Eloquent\Collection |