© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
thyk123

Call another model inside repeater, it is possible?

I want to use another model inside repeater form like this
->maxValue(fn(Inventory $record) => dd($record))
->maxValue(fn(Inventory $record) => dd($record))


but get error like this
App\Filament\Resources\InventoryLocationResource::App\Filament\Resources\{closure}(): Argument #1 ($record) must be of type App\Models\Inventory, App\Models\InventoryLocationList given, called in D:\asc\vendor\filament\support\src\Concerns\EvaluatesClosures.php on line 35
App\Filament\Resources\InventoryLocationResource::App\Filament\Resources\{closure}(): Argument #1 ($record) must be of type App\Models\Inventory, App\Models\InventoryLocationList given, called in D:\asc\vendor\filament\support\src\Concerns\EvaluatesClosures.php on line 35
Solution
Ahh in a text column is different. So remove the Inventory from your $record. But what is InventoryLocationList, is it a model? can you access inventory from that model? if so: $record->inventory->qty ?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Is it possible to have a repeater inside another repeater?
FilamentFFilament / ❓┊help
2y ago
Form with Repeater and another repeat inside it
FilamentFFilament / ❓┊help
2y ago
is it possible to get model name inside resource?
FilamentFFilament / ❓┊help
2y ago
Repeater Inside Repeater
FilamentFFilament / ❓┊help
7mo ago