feat: tambah halaman profil untuk edit data pribadi (nama, email, HP, alamat, password)

This commit is contained in:
2026-04-05 08:33:04 +07:00
parent 1f85251da3
commit 3f42da1e5f
2 changed files with 29 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?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(),
]);
}
}