Laravel - Check whether password is correct or not in Laravel
https://stackoverflow.com/questions/38518543/check-whether-password-is-correct-or-not-in-laravel
There are couple of ways:
Out of the container
$user = User::find($id);
$hasher = app('hash');
if ($hasher->check('passwordToCheck', $user->password)) {
// Success
}
Using the Facade
$user = User::find($id);
if (Hash::check('passwordToCheck', $user->password)) {
// Success
}