Skip to content

Commit

Permalink
Merge pull request #10 from justbetter/feature/bulk-relation
Browse files Browse the repository at this point in the history
Add bulk operations to Nova resource
  • Loading branch information
VincentBean authored Sep 18, 2024
2 parents ad176ed + f223fc1 commit 89c0a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"php": "^8.2",
"laravel/nova": "^4.0",
"justbetter/laravel-magento-prices": "^2.0",
"justbetter/laravel-magento-async-nova": "^4.0",
"bolechen/nova-activitylog": "^0.4.0"
},
"require-dev": {
Expand Down
3 changes: 3 additions & 0 deletions src/Nova/PriceResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Bolechen\NovaActivitylog\Resources\Activitylog;
use Illuminate\Http\Request;
use JustBetter\MagentoAsyncNova\Nova\BulkOperationResource;
use JustBetter\MagentoPrices\Models\Price;
use JustBetter\MagentoProducts\Models\MagentoProduct;
use Laravel\Nova\Fields\Boolean;
Expand Down Expand Up @@ -92,6 +93,8 @@ public function fields(NovaRequest $request): array
->onlyOnDetail(),

MorphMany::make(__('Activity'), 'activities', Activitylog::class),

MorphMany::make(__('Operations'), 'bulkOperations', BulkOperationResource::class),
];
}

Expand Down

0 comments on commit 89c0a45

Please sign in to comment.