File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 'sponsor ' => 'Sponsor Cachet ' ,
2828 ],
2929 ],
30+ 'user ' => [
31+ 'items ' => [
32+ 'edit_profile ' => 'Edit Profile ' ,
33+ ],
34+ ],
3035];
Original file line number Diff line number Diff line change 22
33namespace Cachet ;
44
5+ use Cachet \Filament \Pages \EditProfile ;
56use Cachet \Http \Middleware \SetAppLocale ;
67use Filament \Http \Middleware \Authenticate ;
78use Filament \Http \Middleware \DisableBladeIconComponents ;
@@ -30,6 +31,7 @@ public function panel(Panel $panel): Panel
3031 ->default ()
3132 ->login ()
3233 ->passwordReset ()
34+ ->profile (EditProfile::class)
3335 ->brandLogo (fn () => view ('cachet::filament.brand-logo ' ))
3436 ->brandLogoHeight ('2rem ' )
3537 ->colors ([
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Cachet \Filament \Pages ;
4+
5+ use Filament \Forms \Form ;
6+ use Filament \Pages \Auth \EditProfile as BaseEditProfile ;
7+ use Illuminate \Contracts \Support \Htmlable ;
8+
9+ class EditProfile extends BaseEditProfile
10+ {
11+ public function getTitle (): string |Htmlable
12+ {
13+ return __ ('cachet::navigation.user.items.edit_profile ' );
14+ }
15+
16+ public static function isSimple (): bool
17+ {
18+ return false ;
19+ }
20+
21+ public function form (Form $ form ): Form
22+ {
23+ return $ form
24+ ->schema ([
25+ $ this ->getNameFormComponent (),
26+ $ this ->getEmailFormComponent (),
27+ $ this ->getPasswordFormComponent (),
28+ $ this ->getPasswordConfirmationFormComponent (),
29+ ]);
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments