File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
use Illuminate \Support \Facades \Storage ;
12
12
use Illuminate \Support \Facades \URL ;
13
13
use Illuminate \Support \ServiceProvider ;
14
+ use Illuminate \Support \Str ;
14
15
use pxlrbt \FilamentExcel \Commands \PruneExportsCommand ;
15
16
use pxlrbt \FilamentExcel \Events \ExportFinishedEvent ;
16
17
@@ -63,7 +64,7 @@ public function sendExportFinishedNotification()
63
64
continue ;
64
65
}
65
66
66
- Notification::make ()
67
+ Notification::make (data_get ( $ export , ' id ' ) )
67
68
->title (__ ('filament-excel::notifications.download_ready.title ' ))
68
69
->body (__ ('filament-excel::notifications.download_ready.body ' ))
69
70
->success ()
@@ -89,7 +90,11 @@ public function cacheExportFinishedNotification(ExportFinishedEvent $event)
89
90
$ key = $ this ->getNotificationCacheKey ($ event ->userId );
90
91
91
92
$ exports = cache ()->pull ($ key , []);
92
- $ exports [] = ['filename ' => $ event ->filename , 'userId ' => $ event ->userId ];
93
+ $ exports [] = [
94
+ 'id ' => Str::uuid (),
95
+ 'filename ' => $ event ->filename ,
96
+ 'userId ' => $ event ->userId
97
+ ];
93
98
94
99
cache ()->put ($ key , $ exports );
95
100
}
You can’t perform that action at this time.
0 commit comments