Skip to content

Commit 8518713

Browse files
committed
upload images to nova
1 parent b7de070 commit 8518713

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

app/Nova/Actions/BulkUploadMediaFiles.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,4 @@ protected function collectUploadedFiles(ActionFields $fields): array
150150
return $files;
151151
}
152152

153-
/**
154-
* Indicate that this action can be run without any models.
155-
*/
156-
public function standalone()
157-
{
158-
return true;
159-
}
160153
}

app/Nova/MediaUpload.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public static function indexQuery(NovaRequest $request, $query)
7676
public function actions(Request $request): array
7777
{
7878
return [
79-
new BulkUploadMediaFiles,
79+
(new BulkUploadMediaFiles)
80+
->standalone()
81+
->onlyOnIndex(),
8082
];
8183
}
8284

0 commit comments

Comments
 (0)