Skip to content

Commit

Permalink
Laravel Rules edit exists:users
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetserefoglu committed Nov 4, 2020
1 parent 0d62aa7 commit 8a62129
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/Auth/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class ResetPasswordController extends Controller {
public function store(Request $request) {

$rules = [
'email' => 'required|string|email',
'email' => 'exists:users',
'email' => 'required|string|email|exists:users'
];

$validator = Validator::make($request->all(), $rules);
Expand Down

0 comments on commit 8a62129

Please sign in to comment.