php - The GET method is not supported for this route. Supported methods: POST. but the method is already post
Get the solution ↓↓↓i know it said that im suposed to use the methodPOST
instead ofGET
. but i already changed the method intoPOST
here's the route
Route::post('/OUT/cancelitem/{id}',[store::class,'outcancel']);
as to call it i do this
<a href="/OUT/cancelitem/{{ $itemp->id_autoinc }}"><i class="fa fa-close"></i></a>
does anyone have a clue on why on earth is this happening?
Answer
Solution:
As Musa Said, Link uses GET request instead of POST so it seems that i have to use either AJAX or form to submit a POST request
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: filter_sanitize_string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.