php - Error Message "GET method is not supported for this route. Supported methods: POST"
When I was click submit button I got an error message .
The GET method is not supported for this route. Supported methods: POST
I have try this method, but still error.
php artisan route:clear
php artisan view:clear
This my code
<form action="{{ route('pemesanan.process') }}" method="post">
{{ csrf_field() }}
...
...
</form>
For route
Route::post('pemesanan/process', ['as' => 'pemesanan.process', 'uses' => 'PemesananController@process'])->middleware('auth');
Answer
Solution:
your route name is "pemesanan.calculate" but you are using "pemesanan.process" in your form
change your form to solve your problem
Source