dimanche 26 juillet 2020

Laravel trailing slash connects to GET instead of POST

I have a POST route setup called user/connect which points to the relevant controller function ( which expects post varialbles), but adding a trailing slash e.g. user/connect/ redirects it to GET thus returning "MethodNotAllowedHttpException"

I am unable to remove the forward slash ( as the consuming app is sending it and i have no control ) . Any pointers on how i could get the route with the trailing slash to also point to my POST route ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire