This commit is contained in:
TiclemFR
2023-12-29 16:00:02 +01:00
parent 9d79d7c0c6
commit 884eb3011a
8361 changed files with 1160554 additions and 4 deletions

View 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);
}