We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function __construct() |
||
14 | { |
||
15 | parent::__construct(); |
||
16 | |||
17 | $this->crud->setModel("Backpack\MenuCRUD\app\Models\Menu"); |
||
18 | $this->crud->setRoute(config('backpack.base.route_prefix').'/menu'); |
||
19 | $this->crud->setEntityNameStrings('menu', 'menus'); |
||
20 | |||
21 | $this->crud->allowAccess('reorder'); |
||
22 | $this->crud->enableReorder('name', 2); |
||
23 | |||
24 | $this->crud->addColumn([ |
||
25 | 'name' => 'name', |
||
26 | 'label' => 'Label', |
||
27 | ]);; |
||
|
|||
28 | |||
29 | $this->crud->addField([ |
||
30 | 'name' => 'name', |
||
31 | 'label' => 'Label', |
||
32 | ]); |
||
33 | $this->crud->addField([ |
||
34 | 'label' => 'Name', |
||
35 | 'type' => 'text', |
||
36 | 'name' => 'name', |
||
37 | 'entity' => 'parent', |
||
38 | 'attribute' => 'name', |
||
39 | 'model' => "\Backpack\MenuCRUD\app\Models\Menu", |
||
40 | ]); |
||
41 | } |
||
42 | |||
53 |
Let’s take a look at an example: