Skip to content
Advertisement

Delete information from database using laravel 6.0 and function destroy doesnt work [closed]

I am trying to eliminate an event that I created before. I tried to use the function destroy() but it didn’t work. I think that the cause could be the route in the view

JavaScript
JavaScript

Advertisement

Answer

You have problem in your code. Try below code.

Your view:

JavaScript

EventoController:

JavaScript

Routes:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement