File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 27
27
'sponsor ' => 'Sponsor Cachet ' ,
28
28
],
29
29
],
30
+ 'user ' => [
31
+ 'items ' => [
32
+ 'edit_profile ' => 'Edit Profile ' ,
33
+ ],
34
+ ],
30
35
];
Original file line number Diff line number Diff line change 2
2
3
3
namespace Cachet ;
4
4
5
+ use Cachet \Filament \Pages \EditProfile ;
5
6
use Cachet \Http \Middleware \SetAppLocale ;
6
7
use Filament \Http \Middleware \Authenticate ;
7
8
use Filament \Http \Middleware \DisableBladeIconComponents ;
@@ -30,6 +31,7 @@ public function panel(Panel $panel): Panel
30
31
->default ()
31
32
->login ()
32
33
->passwordReset ()
34
+ ->profile (EditProfile::class)
33
35
->brandLogo (fn () => view ('cachet::filament.brand-logo ' ))
34
36
->brandLogoHeight ('2rem ' )
35
37
->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