This is doing my head in. I\'m getting this error when trying to login from a form:
Symfony \\ Component \\ HttpKernel \\ Exception \\
Me
Error in the route you've defined. Its get
and should change to post
change this
Route::get('/login', ['as' => 'login', 'uses' => 'LoginController@getLogin']);
to this
Route::post('/login', ['as' => 'login', 'uses' => 'LoginController@getLogin']);
action="{{ route('login') }}" # form Submit action
your answer of the route should be
Route::post('/login', ['as' => 'login', 'uses' => 'LoginController@getLogin']);
This problem appears only if you forget attached method on your form or error in Route method.
So be sure you added method POST/GET in your form. And don't forget make matching route.
<form method="POST">
If your form method is post. make post route like this.
Route::post();
I hope you understand the method define. If you're facing problem, comment below.
Route::post('/', 'PostController@index');
Route::post('/posts/create', 'PostController@create');
Route::post('/posts', 'PostController@store');
Post or get..if u pass post value than use post
.