Skip to content

Commit

Permalink
Update for Nova ^3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkandel committed Oct 19, 2020
1 parent bb9f5f0 commit 33cdeba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### Releases
- [v1.0.0](https://github.com/ahmedkandel/nova-s3-multipart-upload/releases/tag/v1.0.0)
- Initial release for Nova ^3.0
- [v1.1.0](https://github.com/ahmedkandel/nova-s3-multipart-upload/releases/tag/v1.1.0)
- Update for Nova ^3.12 [de9e45c](https://github.com/laravel/nova/commit/de9e45c63de26b99bc7b4bdea80253c672bb0f5f)
- [v1.0.0](https://github.com/ahmedkandel/nova-s3-multipart-upload/releases/tag/v1.0.0)
- Initial release for Nova ^3.0
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Ahmed Kandel"
}],
"require": {
"laravel/nova": "^3.0"
"laravel/nova": "^3.12"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/FilesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private function init($request)

$this->model = $resource->model();

$this->tool = collect($resource->availablePanelsForDetail($request))
$this->tool = collect($resource->availablePanelsForDetail($request, $resource))
->whereInstanceOf(NovaS3MultipartUpload::class)
->firstWhere('attribute', $request->route('field'));

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private function init($request)
{
$resource = $request->findResourceOrFail();

$this->tool = collect($resource->availablePanelsForDetail($request))
$this->tool = collect($resource->availablePanelsForDetail($request, $resource))
->whereInstanceOf(NovaS3MultipartUpload::class)
->firstWhere('attribute', $request->route('field'));

Expand Down

0 comments on commit 33cdeba

Please sign in to comment.