|
|
|
|
@ -63,10 +63,10 @@ class User extends Authenticatable
|
|
|
|
|
'username' => 'required|string',
|
|
|
|
|
'email' => 'required|email',
|
|
|
|
|
'password' => 'required_without:id|string|min:8',
|
|
|
|
|
'is_active' => 'required_with:id|in:true,false',
|
|
|
|
|
'is_active' => 'required_with:id|boolean',
|
|
|
|
|
], [
|
|
|
|
|
'password' => ['required_with' => 'The password field is required.'],
|
|
|
|
|
'is_active' => ['required_with' => 'The is active field is required.']
|
|
|
|
|
'password.required_without' => 'The password field is required.',
|
|
|
|
|
'is_active.required_with' => 'The is active field is required.'
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|