Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function setup() : void |
||
16 | { |
||
17 | $this->crud->setModel("App\Models\Manager"); |
||
18 | $this->crud->setRoute("admin/manager"); |
||
19 | $this->crud->setEntityNameStrings('manager', 'managers'); |
||
20 | |||
21 | $this->crud->denyAccess('create'); |
||
22 | $this->crud->denyAccess('delete'); |
||
23 | |||
24 | $this->crud->addColumn([ |
||
25 | 'name' => 'user.name', |
||
26 | 'type' => 'text', |
||
27 | 'label' => 'Name' |
||
28 | ]); |
||
29 | $this->crud->addColumn([ |
||
30 | 'name' => 'user.email', |
||
31 | 'type' => 'text', |
||
32 | 'label' => 'Email' |
||
33 | ]); |
||
34 | |||
35 | $this->crud->removeButton('update'); |
||
36 | $this->crud->addButtonFromView('line', 'create_job_poster', 'create_job_poster', 'beginning'); |
||
37 | } |
||
39 |