| 1 | <?php |
||
| 7 | trait Authorizable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Determine if the entity has a given ability. |
||
| 11 | * |
||
| 12 | * @param string $ability |
||
| 13 | * @param array|mixed $arguments |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function can($ability, $arguments = []) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Determine if the entity does not have a given ability. |
||
| 23 | * |
||
| 24 | * @param string $ability |
||
| 25 | * @param array|mixed $arguments |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public function cant($ability, $arguments = []) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Determine if the entity does not have a given ability. |
||
| 35 | * |
||
| 36 | * @param string $ability |
||
| 37 | * @param array|mixed $arguments |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function cannot($ability, $arguments = []) |
||
| 44 | } |
||
| 45 |