29 lines
831 B
PHP
29 lines
831 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class EditProfile extends \Filament\Auth\Pages\EditProfile
|
|
{
|
|
public function form(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
$this->getNameFormComponent(),
|
|
$this->getEmailFormComponent(),
|
|
TextInput::make('phone')
|
|
->label('Nomor HP')
|
|
->tel()
|
|
->maxLength(20),
|
|
TextInput::make('address')
|
|
->label('Alamat')
|
|
->maxLength(255),
|
|
$this->getPasswordFormComponent(),
|
|
$this->getPasswordConfirmationFormComponent(),
|
|
$this->getCurrentPasswordFormComponent(),
|
|
]);
|
|
}
|
|
}
|