Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $validator = Validator::make($request->all(), [
- 'email' => 'email|unique:users',
- 'password' => 'min:6|confirmed',
- ]);
- if ($validator->fails()) {
- return redirect('admin.test')
- ->withErrors($validator)
- ->withInput();
- }
- $this->validate($request, [
- 'email' => 'email|unique:users',
- 'password' => 'min:6|confirmed',
- ]);
Add Comment
Please, Sign In to add comment