can you try with
$credentials = array('email' => $request->input('email'), 'password' => $request->input('password'));
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
php laravel 5.2
Hello Good day, im new in laravel, and i make my login page howeve when i try to input my email and pass only my email give authentication to my login page, when my email is true even my password is wrong it return true, also even my password is null although my email is correct it will return true.
this is my code: Usercontroller.php public function postsignIn(Request $request){ $credentials = array('email' => $request->email, 'password' => $request->password);
if(Auth::attempt($credentials, false)){
return redirect() -> route('dashboard');
}
return redirect()->back();
}
please help me. thank you so much.
Please or to participate in this conversation.