The DELETE method is not supported for route dashboard/admin/blogs. Supported methods: GET, HEAD, POST. #1836
Answered
by
RobertBoes
farhanahmedhasan
asked this question in
Help
-
I am trying to delete a post. post in the database is deleting but i am seeing this error -> The DELETE method is not supported for route dashboard/admin/blogs. Supported methods: GET, HEAD, POST.here is my form submissionhere is route in the admin.php fileroute list after route:clearhere is my controller |
Beta Was this translation helpful? Give feedback.
Answered by
RobertBoes
Mar 29, 2024
Replies: 1 comment 1 reply
-
You have those routes in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
farhanahmedhasan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have those routes in
admin.php
, so most likely the routes don't have the Inertia middleware added. Inertia converts a 302 redirect to a 303 so that a follow-up request is made using GET, see https://inertiajs.com/redirects#303-response-code