@@ -32,5 +32,9 @@ |
||
| 32 | 32 | abstract protected function init(); |
| 33 | 33 | abstract protected function bound(); |
| 34 | 34 | abstract protected function crud(): CRUD; |
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @param string $action |
|
| 38 | + */ |
|
| 35 | 39 | abstract protected function can($action): bool; |
| 36 | 40 | } |
@@ -12,9 +12,6 @@ |
||
| 12 | 12 | * Handle relation search action. |
| 13 | 13 | * Currently used for SelectField with type `select2` and `ajax = true`. |
| 14 | 14 | * |
| 15 | - * @param string $field |
|
| 16 | - * @param string $page |
|
| 17 | - * @param string $term |
|
| 18 | 15 | * @return \Illuminate\Http\JsonResponse |
| 19 | 16 | */ |
| 20 | 17 | public function searchRelation(Request $request) |
@@ -39,5 +39,9 @@ |
||
| 39 | 39 | abstract protected function init(); |
| 40 | 40 | abstract protected function bound(); |
| 41 | 41 | abstract protected function crud(): CRUD; |
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @param string $action |
|
| 45 | + */ |
|
| 42 | 46 | abstract protected function can($action): bool; |
| 43 | 47 | } |
@@ -41,5 +41,9 @@ |
||
| 41 | 41 | abstract protected function init(); |
| 42 | 42 | abstract protected function bound(); |
| 43 | 43 | abstract protected function crud(): CRUD; |
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @param string $action |
|
| 47 | + */ |
|
| 44 | 48 | abstract protected function can($action): bool; |
| 45 | 49 | } |