Answer the question
In order to leave comments, you need to log in
Hashing not working correctly?
Hello.
I've been fighting for an hour already, the Hash class does not work
Code:
public function authenticate(Request $request)
{
$name = $request->input('name');
$password = Hash::make($request->input('password'));
$user = User::where('name', $name)->first();
if (Hash::check($password, $user->password))
{
return 'nice';
}
else
{
return 'Ошибка! Введенный пароль не совпадает с текущим!';
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question