This commit is contained in:
vishal.kushwaha650 2020-08-20 12:46:43 +05:30
parent 0c1b9232fa
commit 421b2028f0
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class UserForm extends FormRequest
$this->rules = [
'name' => 'required',
'email' => 'email|unique:admins,email',
'password' => 'nullable|confirmed',
'password' => 'nullable',
'password_confirmation' => 'nullable|required_with:password|same:password',
'status' => 'sometimes',
'role_id' => 'required',
];