| 1 | <?php |
||
| 8 | class PermissionsController extends Controller |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Attach a permission to a role. |
||
| 12 | * |
||
| 13 | * @param $role |
||
| 14 | * @param $permission |
||
| 15 | */ |
||
| 16 | public function add($role, $permission) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Detach a permission from a role. |
||
| 23 | * |
||
| 24 | * @param $role |
||
| 25 | * @param $permission |
||
| 26 | */ |
||
| 27 | public function remove($role, $permission) |
||
| 31 | } |