I have standart laravels authentication system created with php artisan make:auth.
In some conditions, I need automatically logout user from system. I tried somethong like:
if(condition) {
return redirect('/logout');
}
This trows MethodNotAllowedHttpException
1) why trows this error? because when user clicks same link (laravel's default logout link), then logout works.
and second question: What is correct way, to logout user automatically ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire