Level 80
@learnwithmoin So you’re just completely ignoring every one’s advice in your previous thread here then…?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a multi-guard authentication login. When i try to log in, Auth::guard is not authenticated. Here is the code:
public function login(Request $request){
$credentials = [
'email' => $this->email,
'password' => $this->password,
];
if(Auth::guard('seller')->attempt($credentials)){
$request->session()->regenerate();
return redirect()->route('sellerdashboard');
}else{
session()->flash('loginmsg', 'Login Failed! Invalid Email or Password');
}
}
Please or to participate in this conversation.