I am using hashing algorithm using Laravel Hashing.
But got this error
Undefined property: Illuminate\Database\Eloquent\Builder::$password
Here is my function
public function signin(LoginFormValidation $request)
{
$user_password = $request->password;
$data = User::where('email','=',$request->email);
if (Hash::check($user_password, $data->password, flase))
{
echo "success";
}
else
{
echo "still not";
}
}
flase
it isfalse
, and you should usefirst()
orget()
– Eazy Sam