11. $user = User::where('email', request('email'))->first();
22. Hash::check(request('password'), $user->password);
3
4This will return true or false based on whether or not the password matches.
1'password' => 'required|confirmed',
2
3reference : https://laravel.com/docs/4.2/validation#rule-confirmed
4
5The field under validation must have a matching field of foo_confirmation.
6For example, if the field under validation is password, a matching
7password_confirmation field must be present in the input.
1$this->validate($request, [
2 'name' => 'required|min:3|max:50',
3 'email' => 'email',
4 'vat_number' => 'max:13',
5 'password' => 'required|confirmed|min:6',
6]);
1$this->validate($request, [
2 'name' => 'required|min:3|max:50',
3 'email' => 'email',
4 'vat_number' => 'max:13',
5 'password' => 'required|confirmed|min:6',
6]);
7