Filament v2 Is it possible to render a relation manager outside of the admin dashboard on blade
Hello I was hoping someone could guide me in the right direction, I'm pretty familiar with the v2 docs but cant seem to find anything about how to render a relation manager in a regular blade template.
There are plenty of docs for how to use tables and forms in blade but nothing about how to use relationmanagers alongside them
tried using phind.com (AI) to see if it would throw out some random ideas and it suggested this
but of course that does not seem to work
3 Replies
No. You just would create a normal table and set your actions to accomplish the same thing
An RM is specific to a resource and the panel builder
It’s just a premade table and set of actions, you can definitely create identical functionality with a standalone table
Thank you for your help @mark_chaney
Yes, it is possible.
You'd need to mount the relation managers on your component.
Then in your blade file you can render something like this
Make sure to call
$this->loadRelationManagers()
when your component pounts/page loads.