We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello, i updated my code to version 4
but when i call the method logout in form
` logout
<form id="logout-form" action="{{ route('admin.logout') }}" method="POST" style="display: none;"> {{ csrf_field() }} </form>
i get this error : MethodNotAllowedHttpException in RouteCollection.php line 233
the method work fine if i call the link from browser ....
==> localhost/enseigant/logout
`
The text was updated successfully, but these errors were encountered:
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');
Sorry, something went wrong.
Issue seems to be resolved. Requesting to close issue. @jacurtis
No branches or pull requests
hello,
i updated my code to version 4
but when i call the method logout in form
`
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
`
The text was updated successfully, but these errors were encountered: