Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 7 | protected function templateFields(NovaRequest $request): array |
|
15 | { |
||
16 | 7 | return [ |
|
17 | 7 | Select::make('Template', $this->templateKeyName()) |
|
18 | 7 | ->placeholder('Default') |
|
19 | 7 | ->searchable() |
|
20 | 7 | ->options(TemplateFinder::templatesNames(static::$model)) |
|
21 | 7 | ->displayUsingLabels() |
|
22 | 7 | ->nullable(), |
|
23 | 7 | ...$this->selectedTemplateFields($request), |
|
24 | 7 | ]; |
|
36 |