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

marcelobianco's avatar

The POST method is not supported

I have the error attached, but the record is inserted but this error message appears. The post method is not supported for this route. Supported methdos: get, head, put, patch. When I clear the cache of routes the error stops but after a while it reoccurs. What can it be?

0 likes
6 replies
Sinnbeck's avatar

Does it happen when you cache your routes again? Or do you cache them instantly and then it works for a while?

How does the route look?

marcelobianco's avatar

@Sinnbeck it works for a while and then returns to error. Route::resource('meds', 'SendFilesMedicoesController')->except(['destroy']);

marcelobianco's avatar

Could this redirect be causing the error? return redirect()->to('/meds');

Please or to participate in this conversation.