Show the form please. And the route
Dec 28, 2022
17
Level 1
@method('PUT') does not work
Hi,
I am following a Laravel tutorial and I got stuck at the point, when I try to update the database entry.
The data are brought into the form and after editing sent back. Here I use "POST" method with @method('PUT') directive. and in routes I also have Route::put(' ' etc.).
I get error message that says "method is not supported for route PUT. Supported methods: GET, HEAD."
At this point I am clueless what to do. I even tried to put GET instead of POST. i get no error bu the code does not work. e.g. nothing gets updated.
Any help is highly appreciated.
Please or to participate in this conversation.