MethodNotAllowedHttpException on form submit in laravel?

QuestionsCategory: QuestionsMethodNotAllowedHttpException on form submit in laravel?
rix asked 1 week 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
therichpost Staff answered 1 week ago

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

rix replied 1 week ago

thank you
it worked…

therichpost Staff replied 1 week ago

most welcome

Your Answer

12 + 20 =