Delete action in Edit Modal (Simple Resource)
Hi, how can i get the "delete button" on modal using the Simple Resource?
4 Replies
Thanks! worked like a charm but i have a new problem π
When the record is deleted, modal don't close, the only option i found was using
Tables\Actions\DeleteAction::make()->successRedirectUrl(fn () => url()->previous())
but i don't know if is the best solution since this redirects to previous page instead only reload the content. or is the right way to do this and i am thinking wrong XDThe redirect is not a bad idea... can you instead redirect to the page you're on? Something like this:
Thanks!
This is my code right now and works!
i'll mark as solved, thanks @pboivin