Call to a member function getAuthIdentifier() on null
Opened this issue · 5 comments
volkankurt2 commented
Xavier-IV commented
I am having the same issue
winnerawan commented
same here, still not solve ?
Sinthix commented
My fix :
in each LoginController (AdminAuth, ModeratorAuth, UserAuth)
i overrited the logout function like this:
public function logout() {
auth('admin')->logout();
return redirect('admin/login');
}
auth()->logout does the trick for me, hope it helps
piyas33 commented
Engineer Safaetul Ahasan
I have face same problem
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function getAuthIdentifier() on null
YvesBoah commented
My solution is rewrite the function logout in LoginController:
public function logout() {
Auth::guard('administrateur')->logout();
return redirect('administrateur/login');
}