Open acharmat opened 7 years ago
its because you are using POST method in form, but using GET method in route. Use this
Route::POST('/logout', 'Auth\AdminLoginController@logout')->name('admin.logout');
Issue seems to be resolved. Requesting to close issue. @jacurtis
hello, i updated my code to version 4
but when i call the method logout in form
`<a href="{{ route('admin.logout') }}" class="btn btn-default btn-flat" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> logout
i get this error : MethodNotAllowedHttpException in RouteCollection.php line 233
the method work fine if i call the link from browser ....
==> localhost/enseigant/logout
`