Files
scp-syria/vendor/laravel/sanctum/src/Contracts/HasAbilities.php
T
2026-04-16 20:02:41 +03:00

23 lines
403 B
PHP

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