How to keep both modal Edit action and generate an edit route url?
I have a client who specifically needs both the edit modal and the edit link itself to work (ie modal opens from all table cells), but also needs from other pages a working link to the edit page, ie
/{record}/edit
should be a valid url.
I can get either one working fine, but the problem is as follows:
When edit
is commented modal works, but there is no edit route generated (verified with php artisan route:list
)
When edit
is uncommented there is no modal but the edit route is correctly generated.
Anyone tackled something like this before? Thanks3 Replies
So I've made some progress.. it works by keeping the edit page uncommented and having the following:
The display/formatting of it is all just single column but it seems to work I guess... trying to figure out now how to fix the formatting
You’re on the right track.
Ok, anyone looking in the future here you go! The behaviour I have is I now have an edit modal when I click on the row, but we still keep the
/{record}/edit
route.
and also in the resource: