| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function run() |
||
| 15 | { |
||
| 16 | $abilities = [ |
||
| 17 | ['name' => 'list', 'title' => 'List attributes', 'entity_type' => 'attribute'], |
||
| 18 | ['name' => 'import', 'title' => 'Import attributes', 'entity_type' => 'attribute'], |
||
| 19 | ['name' => 'create', 'title' => 'Create attributes', 'entity_type' => 'attribute'], |
||
| 20 | ['name' => 'update', 'title' => 'Update attributes', 'entity_type' => 'attribute'], |
||
| 21 | ['name' => 'delete', 'title' => 'Delete attributes', 'entity_type' => 'attribute'], |
||
| 22 | ['name' => 'audit', 'title' => 'Audit attributes', 'entity_type' => 'attribute'], |
||
| 23 | ]; |
||
| 24 | |||
| 25 | collect($abilities)->each(function (array $ability) { |
||
| 26 | app('cortex.auth.ability')->create($ability); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |