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 |
||
34 | 2 | public function options(NovaRequest $request) |
|
35 | { |
||
36 | /** @var \Illuminate\Database\Eloquent\Relations\BelongsToMany $relation */ |
||
37 | 2 | $relation = $request->model()->{$this->relationName}(); |
|
38 | |||
39 | 2 | return $relation->getRelated()::query()->get()->pluck($relation->getRelatedKeyName(), $this->titleKeyName)->all(); |
|
40 | } |
||
56 |