mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
only require email in settings
This commit is contained in:
parent
4b4632752d
commit
3970ee3450
@ -29,8 +29,8 @@ class General extends Component
|
||||
public $saved;
|
||||
|
||||
protected $rules = [
|
||||
'first_name' => ['required'],
|
||||
'last_name' => ['required'],
|
||||
'first_name' => ['sometimes'],
|
||||
'last_name' => ['sometimes'],
|
||||
'email' => ['required', 'email'],
|
||||
];
|
||||
|
||||
|
@ -15,9 +15,9 @@ class NameWebsiteLogo extends Component
|
||||
public $saved;
|
||||
|
||||
public $rules = [
|
||||
'name' => ['required', 'min:3'],
|
||||
'website' => ['required'],
|
||||
'phone' => ['required', 'string', 'max:255'],
|
||||
'name' => ['sometimes', 'min:3'],
|
||||
'website' => ['sometimes'],
|
||||
'phone' => ['sometimes', 'string', 'max:255'],
|
||||
];
|
||||
|
||||
public function mount()
|
||||
|
@ -24,7 +24,7 @@ class PersonalAddress extends Component
|
||||
'address2' => ['sometimes'],
|
||||
'city' => ['sometimes'],
|
||||
'state' => ['sometimes'],
|
||||
'postal_code' => ['required'],
|
||||
'postal_code' => ['sometimes'],
|
||||
'country_id' => ['sometimes'],
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user