MethodNotAllowedHttpException on form submit in laravel?

QuestionsCategory: QuestionsMethodNotAllowedHttpException on form submit in laravel?
rix asked 3 months ago

Hi, I am facing one error which is MethodNotAllowedHttpException on form submit in laravel?
Please help me out:
 
In your route there is GET method defined

Route::get('payment','UsersController@addUser')->name('user.add');

1 Answers
Best Answer
Ajay Malhotra Staff answered 3 months ago

Please apply post method because I think you are posting user details to controller file:
so use:
Route::post

rix replied 3 months ago

thank you
it worked…

therichpost Staff replied 3 months ago

most welcome

Your Answer

4 + 18 =