Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fatihealan@gmail.com's avatar

Delete method is not supported for the route

I am fairly new to laravel and php, i was trying to create a delete button for comments section in my web application, I always got delete method is not supported for this route error untill i go change url manually and going back, then it started to work, i had a problem with delete request for second time, i searched maybe 3 hours for that and tried almost everything, first time i just corrected it randomly i have no idea what i actually did, and the second time i solved it as i explained above, my question if there is something like cache issues that may be causing these errors, i always saw some cach word in between when researching but i could not find a guide to check if it is the issue

0 likes
3 replies
Sergiu17's avatar

Delete method is not supported for the route

this means that you have a route, for example Route::get, or Route::post and you try to submit a DELETE request to it, and it won't work. To fix this, first, open web.php adjust your Route definition, then run php artisan route:clear, and that's it

1 like
fatihealan@gmail.com's avatar

Thank you, for this time i handled problems next time i will keep these in my mind, i used spoofing i think otherwise it gives an error like 409, this discussion forum is kinda crazy it is really helpful even sunday there are people helping others thank you guys :)

Please or to participate in this conversation.