Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’3y agoβ€’
4 replies
uzdacpdz (Doug Dimmadome)

Creating eloquent relationship model from table

Hi all!

I can't seem to figure out how I would do the following:

Lets say I have a table containing
Car
Car
s, it nicely lists a bunch of cars with basic actions like editing and deleting (assume it's a simple resource so no dedicated pages for that - just modals). What if I'd want to add an action for example,
RegisterDriverAction
RegisterDriverAction
, in which it would open the form for the
Driver
Driver
resource, and when the user fills in the
Driver
Driver
information, it creates the driver and adds it to the car, all inside the table (via a modal).

I looked into the relationship managers but they don't seem to offer any functionality like the on described above.

I also tried creating a
Filament\Tables\Actions\CreateAction
Filament\Tables\Actions\CreateAction
and changing the record and model on that action to the
Driver
Driver
class, but that doesnt' work either.

Any ideas or anything that can point me in the right direction would be greatly appreciated!

Thanks πŸ™‚
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

Help on table eloquent relationship
FilamentFFilament / β“β”Šhelp
2y ago
Convert model method to eloquent relationship
FilamentFFilament / β“β”Šhelp
2y ago
Table page without Eloquent Model
FilamentFFilament / β“β”Šhelp
2y ago
Use table with non-eloquent model
FilamentFFilament / β“β”Šhelp
2y ago