The GET method is not supported for this route. Supported methods: POST.
php artisan route:cache
php artisan route:clear
how much time we fire this command i need proper solution of this error
i need proper solution of this error
The GET method is not supported for this route. Supported methods: POST.
php artisan route:cache
php artisan route:clear
how much time we fire this command i need proper solution of this error
i need proper solution of this error
2
Answers
When you use
GET
type of route in yourroutes/web.php
file, in form which is using themethod
with type"POST"
, it givesThe GET method is not supported for this route
as there is conflict between the submission type at the frontend and the route type.Try converting your route in
routes/web.php
:to this:
The error statement is quiet explanatory! But your question is not. Without your code snippet, it is seen that you are trying to access the endpoint that is only supporting POST so as solution do – either :
Route::get('/get-something', 'yourController@yourFunctionForHandlingThisRoute');