Property | Type | Description | |
---|---|---|---|
$auth | Illuminate\Contracts\Auth\Guard |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Auth\Guard $auth ) | Create a new UserHasPermission instance. | |
can ( array | string $permissions ) : boolean | Checks if user has the given permissions. | |
canAtLeast ( array $permissions ) : boolean | Checks if user has at least one of the given permissions. | |
isRole ( $role ) : boolean | Checks if user is assigned the given role. |
public __construct ( Illuminate\Contracts\Auth\Guard $auth ) | ||
$auth | Illuminate\Contracts\Auth\Guard |
public canAtLeast ( array $permissions ) : boolean | ||
$permissions | array | |
return | boolean |