Skip to content

Commit de700a6

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 1ae24d0 commit de700a6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ You can replace `Laravel\Nova\Actions\ExportAsCsv` with `NovaKit\NovaQueuedExpor
2121

2222
```php
2323
use Laravel\Nova\Actions\ExportAsCsv;
24+
use Laravel\Nova\Http\Requests\NovaRequest;
2425
use NovaKit\NovaQueuedExportAsCsv\Actions\QueuedExportAsCsv;
2526

27+
// ...
28+
2629
/**
2730
* Get the actions available for the resource.
2831
*
29-
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
30-
* @return array
32+
* @return array<int, \Laravel\Nova\Actions\Action>
3133
*/
32-
public function actions(NovaRequest $request)
34+
public function actions(NovaRequest $request): array
3335
{
3436
return [
3537
QueuedExportAsCsv::make(),
@@ -40,6 +42,10 @@ public function actions(NovaRequest $request)
4042
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:
4143

4244
```php
45+
use NovaKit\NovaQueuedExportAsCsv\Actions\QueuedExportAsCsv;
46+
47+
// ...
48+
4349
return [
4450
QueuedExportAsCsv::make()->withStorageDisk('s3'),
4551
];
@@ -51,6 +57,8 @@ You can also customise the response message by using the following code:
5157
use Laravel\Nova\Actions\Action;
5258
use NovaKit\NovaQueuedExportAsCsv\Actions\QueuedExportAsCsv;
5359

60+
// ...
61+
5462
return [
5563
QueuedExportAsCsv::make()->then(function () {
5664
return response()->json(Action::message('Action has been queued!'));

0 commit comments

Comments
 (0)