some stan
This commit is contained in:
@@ -23,13 +23,14 @@ class UserPassportFields extends Component implements HasForms
|
||||
use HasSort;
|
||||
use InteractsWithForms;
|
||||
|
||||
/** @var array<string, mixed> */
|
||||
public ?array $data = [];
|
||||
|
||||
protected static int $sort = 10;
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->form->fill();
|
||||
$this->form->fill(); // @phpstan-ignore-line
|
||||
}
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
@@ -160,7 +161,7 @@ class UserPassportFields extends Component implements HasForms
|
||||
{
|
||||
try {
|
||||
/** @var array{first_name: string, last_name: string, patronic_name: null|string, born_at: string, phone: string, email: string, passport_serie: string, passport_id: string, passport_given_at: string, born_place: string, passport_given_by: string, passport_address: string, real_address: string} */
|
||||
$data = $this->form->getState();
|
||||
$data = $this->form->getState(); // @phpstan-ignore-line
|
||||
|
||||
user()->update([
|
||||
'first_name' => $data['first_name'],
|
||||
|
||||
Reference in New Issue
Block a user