|
|
@ -65,6 +65,9 @@ class Register extends Component |
|
|
/** @var int */ |
|
|
/** @var int */ |
|
|
public $contribution = null; |
|
|
public $contribution = null; |
|
|
|
|
|
|
|
|
|
|
|
/** @var string */ |
|
|
|
|
|
public $form; |
|
|
|
|
|
|
|
|
protected function rules($partial = false) |
|
|
protected function rules($partial = false) |
|
|
{ |
|
|
{ |
|
|
$rules = [ |
|
|
$rules = [ |
|
|
@ -107,6 +110,11 @@ class Register extends Component |
|
|
return $rules; |
|
|
return $rules; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function mount($form = 'individual') |
|
|
|
|
|
{ |
|
|
|
|
|
$this->form = $form; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function updated($field) |
|
|
public function updated($field) |
|
|
{ |
|
|
{ |
|
|
$this->validateOnly($field, collect($this->rules(true))); |
|
|
$this->validateOnly($field, collect($this->rules(true))); |
|
|
|