Create link to edit model
Hey, where can I get the route to edit a model. I tried route('islands.edit')
Route [islands.edit] not defined.
10 Replies
try
ResourceName::getUrl('edit')
Where can I set the id for the edit?
getUrl('edit',['record'=>10])
How can I use an Action inside a form?
I want to list the relations in an edit form in a placeholder with action url
Now I get this error
Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Forms\Components\Actions\Action given
ya make sure you importing
use Filament\Forms\Components\Actions\Action;
I did
i'm getting this error too. did you solve it?
i figured it out. i had to wrap the Action in an Actions component
I made a custom filament/livewire component