| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class NovaHasManyOnIndex extends Field |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The field's component. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | public $component = 'nova-has-many-index'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | public $showOnIndex = true; |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | 1 | public function isShownOnDetail(NovaRequest $request, $resource): bool |
|
| 27 | { |
||
| 28 | 1 | return false; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | 1 | public function isShownOnUpdate(NovaRequest $request, $resource): bool |
|
| 35 | { |
||
| 36 | 1 | return false; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | */ |
||
| 42 | 1 | public function isShownOnCreation(NovaRequest $request): bool |
|
| 45 | } |
||
| 46 | } |
||
| 47 |