| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function setup() : void |
||
| 22 | { |
||
| 23 | // Eloquent model to associate with this collection of views and controller actions. |
||
| 24 | $this->crud->setModel('App\Models\Classification'); |
||
| 25 | // Custom backpack route. |
||
| 26 | $this->crud->setRoute('admin/classification'); |
||
| 27 | // Custom strings to display within the backpack UI. |
||
| 28 | $this->crud->setEntityNameStrings('classification', 'classifications'); |
||
| 29 | |||
| 30 | $this->crud->operation(['create', 'update'], function () { |
||
| 31 | $this->crud->addField([ |
||
| 32 | 'name' => 'key', |
||
| 33 | 'type' => 'text', |
||
| 34 | 'label' => 'Key', |
||
| 35 | ]); |
||
| 64 |