Relation Manager with Parameters #6994
Replies: 3 comments 2 replies
-
The relation manager is a Livewire component, so you shouldn't override the constructor like a regular class. I think the best way to achieve what you want is by emiting a Livewire event from the page component to the relation manager: |
Beta Was this translation helpful? Give feedback.
-
I've read the documentation but I'm facing a problem that I have more than one instance QuestionsRelationManager
Resource AssessmentManagerResource
can you please help me figure out how to rewrite the getRelations() function, in the logic that i wrote above but ofcourse that works as i am just trying to explain what i want it to do. |
Beta Was this translation helpful? Give feedback.
-
Pass data to a Relation Manager in Laravel Filament is possible: https://stackoverflow.com/a/79640484/724816 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Relation Manager with 2 parameters (level,lbl)
i want to pass this parameters
I try,but it's not work i get this error
Filament\Resources\Pages\EditRecord::Filament\Resources\Pages\Concerns\{closure}(): Argument #1 ($manager) must be of type Filament\Resources\RelationManagers\RelationGroup|string, App\Filament\Resources\Assessment\AssessmentManagerResource\RelationManagers\QuestionsRelationManager given
Beta Was this translation helpful? Give feedback.
All reactions