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