| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class DummyNameController extends Controller |
||
| 13 | { |
||
| 14 | use FormulariumControllerAPI, FormulariumControllerRoutes, FormulariumControllerDebug; |
||
| 15 | |||
| 16 | public function getPermissions() |
||
| 17 | { |
||
| 18 | $name = $this->getClassName(); |
||
| 19 | $can = [ |
||
| 20 | 'store' => Gate::allows('store', $name), |
||
| 21 | 'index' => Gate::allows('index', $name) |
||
| 22 | ]; |
||
| 23 | return $can; |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function getStoreRules(Model $model): array |
||
| 27 | { |
||
| 28 | return []; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function getShowVisibleAttributes(): array |
||
| 32 | { |
||
| 33 | return []; // this is everything |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function getAppendAttributes(): array |
||
| 37 | { |
||
| 38 | return []; |
||
| 39 | } |
||
| 41 |