Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function getScheme(Builder $builder) |
||
16 | { |
||
17 | return $builder->group([ |
||
18 | 'title' => $builder->text() |
||
19 | ->label('Title'), |
||
20 | |||
21 | 'intro' => $builder->html() |
||
22 | ->label('Introduction'), |
||
23 | |||
24 | 'category' => $builder->select() |
||
25 | ->options([ |
||
26 | 'food' => 'Food', |
||
27 | 'sports' => 'Sports', |
||
28 | 'life' => 'Life', |
||
29 | ]) |
||
30 | ->label('Category'), |
||
31 | |||
32 | 'actived' => $builder->checkbox() |
||
33 | ->label('Actived'), |
||
34 | ]); |
||
35 | } |
||
36 | } |
||
37 |