Compare commits
2 Commits
002bdc597d
...
deb46cdda2
| Author | SHA1 | Date | |
|---|---|---|---|
| deb46cdda2 | |||
|
|
bc8163a535 |
@@ -267,9 +267,7 @@ class ItemResource extends Resource
|
|||||||
->options(function (callable $get) {
|
->options(function (callable $get) {
|
||||||
$plantId = $get('Plant');
|
$plantId = $get('Plant');
|
||||||
|
|
||||||
return $plantId
|
return $plantId ? Item::where('plant_id', $plantId)->pluck('code', 'id') : [];
|
||||||
? Item::where('plant_id', $plantId)->pluck('code', 'id')
|
|
||||||
: [];
|
|
||||||
})
|
})
|
||||||
->searchable()
|
->searchable()
|
||||||
->reactive(),
|
->reactive(),
|
||||||
|
|||||||
Reference in New Issue
Block a user