File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99trait HasBackstageManagement
1010{
11+ use CanResetPassword;
1112 use Concerns \Conditionals \HasConditionals;
1213 use Concerns \Relations \HasRelations;
13- use Concerns \Scopes \HasScopes;
1414
15+ use Concerns \Scopes \HasScopes;
1516 // Illuminate contracts:
1617 use Notifiable;
17- use CanResetPassword;
1818}
Original file line number Diff line number Diff line change 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 ;
@@ -44,8 +44,8 @@ public static function form(Form $form): Form
4444 ->revealable (Filament::arePasswordsRevealable ())
4545 ->rule (Password::default ())
4646 ->autocomplete ('new-password ' )
47- ->dehydrated (fn ($ state ): bool => filled ($ state ))
48- ->dehydrateStateUsing (fn ($ state ): string => Hash::make ($ state ))
47+ ->dehydrated (fn ($ state ): bool => filled ($ state ))
48+ ->dehydrateStateUsing (fn ($ state ): string => Hash::make ($ state ))
4949 ->live (debounce: 500 ),
5050 ]);
5151 }
@@ -112,7 +112,7 @@ public static function getPages(): array
112112 public static function getWidgets (): array
113113 {
114114 return [
115- StatsOverviewWidget::class
115+ StatsOverviewWidget::class,
116116 ];
117117 }
118118}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ protected function getHeaderActions(): array
2121 return [
2222 Actions \ActionGroup::make ([
2323 Actions \Action::make ('send_verify_user_email ' )
24- ->visible (fn ($ record ) => $ record ->isVerified () === false )
24+ ->visible (fn ($ record ) => $ record ->isVerified () === false )
2525 ->label (__ ('Send Verification Email ' ))
2626 ->action (function ($ record ) {
2727 $ notification = new VerifyEmail ;
@@ -40,6 +40,7 @@ protected function getHeaderActions(): array
4040 $ user = $ this ->record ;
4141 /**
4242 * Broker
43+ *
4344 * @var \Illuminate\Auth\Passwords\PasswordBroker $broker
4445 */
4546 $ broker = app ('auth.password.broker ' );
@@ -56,7 +57,6 @@ protected function getHeaderActions(): array
5657 ->icon (false )
5758 ->dropdownPlacement ('bottom ' ),
5859
59-
6060 Actions \EditAction::make (),
6161 ];
6262 }
You can’t perform that action at this time.
0 commit comments