| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 2 | public function options(NovaRequest $request) |
|
| 34 | { |
||
| 35 | /** @var \Illuminate\Database\Eloquent\Relations\BelongsTo $relation */ |
||
| 36 | 2 | $relation = $request->model()->{$this->relationName}(); |
|
| 37 | |||
| 38 | 2 | return $relation->getRelated()::query()->get()->pluck($relation->getOwnerKeyName(), $this->titleKeyName)->all(); |
|
| 39 | } |
||
| 55 |