🎉
This commit is contained in:
22
vendor/laravel/sanctum/src/Contracts/HasAbilities.php
vendored
Normal file
22
vendor/laravel/sanctum/src/Contracts/HasAbilities.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Sanctum\Contracts;
|
||||
|
||||
interface HasAbilities
|
||||
{
|
||||
/**
|
||||
* Determine if the token has a given ability.
|
||||
*
|
||||
* @param string $ability
|
||||
* @return bool
|
||||
*/
|
||||
public function can($ability);
|
||||
|
||||
/**
|
||||
* Determine if the token is missing a given ability.
|
||||
*
|
||||
* @param string $ability
|
||||
* @return bool
|
||||
*/
|
||||
public function cant($ability);
|
||||
}
|
||||
Reference in New Issue
Block a user