44
55use Backstage \UserManagement \Exports \UserExporter ;
66use Backstage \UserManagement \Imports \UserImporter ;
7- use Backstage \UserManagement \Widgets \StatsOverviewWidget ;
87use Backstage \UserManagement \Resources \UserResource \Pages ;
8+ use Backstage \UserManagement \Widgets \StatsOverviewWidget ;
99use Filament \Facades \Filament ;
1010use Filament \Forms ;
1111use Filament \Forms \Form ;
@@ -31,6 +31,7 @@ public static function form(Form $form): Form
3131 ->schema (function ($ livewire ) {
3232 $ livewire = $ livewire ;
3333
34+ <<<<<<< HEAD
3435 $ formFields = $ livewire ->getFormFields ();
3536
3637 return array_merge ([
@@ -55,6 +56,18 @@ public static function form(Form $form): Form
5556 ->live (debounce: 500 ),
5657 ], $ formFields );
5758 });
59+ =======
60+ Forms \Components \TextInput::make ('password ' )
61+ ->password ()
62+ ->label (__ ('Password ' ))
63+ ->revealable (Filament::arePasswordsRevealable ())
64+ ->rule (Password::default ())
65+ ->autocomplete ('new-password ' )
66+ ->dehydrated (fn ($ state ): bool => filled ($ state ))
67+ ->dehydrateStateUsing (fn ($ state ): string => Hash::make ($ state ))
68+ ->live (debounce: 500 ),
69+ ]);
70+ >>>>>>> b4ca8e6041979a6d83cd9392ccaefac7790d2916
5871 }
5972
6073 public static function table (Table $ table ): Table
@@ -119,7 +132,7 @@ public static function getPages(): array
119132 public static function getWidgets (): array
120133 {
121134 return [
122- StatsOverviewWidget::class
135+ StatsOverviewWidget::class,
123136 ];
124137 }
125138}
0 commit comments