1
0
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:
Benjamin Beganović 2021-01-15 14:07:33 +01:00
parent 4b4632752d
commit 3970ee3450
3 changed files with 6 additions and 6 deletions

View File

@ -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'],
];

View File

@ -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()

View File

@ -24,7 +24,7 @@ class PersonalAddress extends Component
'address2' => ['sometimes'],
'city' => ['sometimes'],
'state' => ['sometimes'],
'postal_code' => ['required'],
'postal_code' => ['sometimes'],
'country_id' => ['sometimes'],
];