|
|
@@ -1154,17 +1154,6 @@ class Member extends Component
|
|
|
|
|
|
$this->emit('setErrorMsg', $zzz);
|
|
|
|
|
|
-
|
|
|
- if (!empty($this->fiscal_code)) {
|
|
|
- $existingMember = \App\Models\Member::where('fiscal_code', $this->fiscal_code)->first();
|
|
|
- if ($existingMember) {
|
|
|
- $this->already_existing = true;
|
|
|
- $this->emit('focus-error-field', 'fiscal_code');
|
|
|
-
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if ($this->under18) {
|
|
|
$rules['father_name'] = 'required_without:mother_name';
|
|
|
$rules['father_email'] = 'required_without:mother_email|email';
|