File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2323use Filament \Tables \Filters \TernaryFilter ;
2424use Filament \Tables \Table ;
2525use Illuminate \Database \Eloquent \Builder ;
26+ use Illuminate \Support \Collection ;
2627use Illuminate \Support \Facades \Auth ;
2728use Illuminate \Support \Facades \Hash ;
2829use Korridor \LaravelModelValidationRules \Rules \UniqueEloquent ;
@@ -207,6 +208,14 @@ public static function table(Table $table): Table
207208 }),
208209 ])
209210 ->bulkActions ([
211+ Tables \Actions \BulkAction::make ('Resend verification email ' )
212+ ->icon ('heroicon-o-paper-airplane ' )
213+ ->action (function (Collection $ records ): void {
214+ foreach ($ records as $ user ) {
215+ /** @var User $user */
216+ $ user ->sendEmailVerificationNotification ();
217+ }
218+ }),
210219 ]);
211220 }
212221
You can’t perform that action at this time.
0 commit comments