feat: tambah custom EditProfile sebagai base halaman profile akun

This commit is contained in:
2026-04-05 09:08:34 +07:00
parent 006e4db3be
commit a0f4882d0b
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Filament\Pages;
use Filament\Schemas\Schema;
class EditProfile extends \Filament\Auth\Pages\EditProfile
{
public function form(Schema $schema): Schema
{
return $schema
->components([
$this->getNameFormComponent(),
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
$this->getCurrentPasswordFormComponent(),
]);
}
}
@@ -33,7 +33,7 @@ class AdminPanelProvider extends PanelProvider
->path('dashboard') ->path('dashboard')
->viteTheme('resources/css/filament/admin/theme.css') ->viteTheme('resources/css/filament/admin/theme.css')
->login() ->login()
->profile(false) ->profile(\App\Filament\Pages\EditProfile::class)
->colors([ ->colors([
'primary' => Color::Amber, 'primary' => Color::Amber,
]) ])