You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function actions(NovaRequest $request): array
33
35
{
34
36
return [
35
37
QueuedExportAsCsv::make(),
@@ -40,6 +42,10 @@ public function actions(NovaRequest $request)
40
42
If you would like to change the storage disk to store the CSV file that is available for download, you may invoke the `withStorageDisk()` method when registering the action:
41
43
42
44
```php
45
+
use NovaKit\NovaQueuedExportAsCsv\Actions\QueuedExportAsCsv;
46
+
47
+
// ...
48
+
43
49
return [
44
50
QueuedExportAsCsv::make()->withStorageDisk('s3'),
45
51
];
@@ -51,6 +57,8 @@ You can also customise the response message by using the following code:
51
57
use Laravel\Nova\Actions\Action;
52
58
use NovaKit\NovaQueuedExportAsCsv\Actions\QueuedExportAsCsv;
53
59
60
+
// ...
61
+
54
62
return [
55
63
QueuedExportAsCsv::make()->then(function () {
56
64
return response()->json(Action::message('Action has been queued!'));
0 commit comments