I get this error whenever I hit the delete button to delete a thread.
The DELETE method is not supported for this route. Supported methods: GET, HEAD.
Here is the route in web.php:
Here is destroy function inside Controller:
Here is the form inside index.blade:
I have try instead of get in route use delete but when use it I got other error. that goes to variables inside the blade and its undefined variable.
I would be very thankful if anyone could point-out mistake I'm doing here.
source https://stackoverflow.com/questions/70383702/method-is-not-supported-for-this-route
Comments
Post a Comment