multiauth_tutorial icon indicating copy to clipboard operation
multiauth_tutorial copied to clipboard

problem when logout ...

Open acharmat opened this issue 8 years ago • 2 comments
trafficstars

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

`

acharmat avatar Jun 02 '17 23:06 acharmat

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');

sreejithbs avatar Jul 30 '17 10:07 sreejithbs

Issue seems to be resolved. Requesting to close issue. @jacurtis

BippyMiester avatar Oct 15 '19 02:10 BippyMiester