From 28afb4a4f5ff96cba4eb1e38550e43462e5605b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sat, 10 Aug 2024 13:43:22 +0200 Subject: [PATCH] wip --- stubs/ProductResource.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/ProductResource.stub b/stubs/ProductResource.stub index 47736d7d..189ecdd8 100644 --- a/stubs/ProductResource.stub +++ b/stubs/ProductResource.stub @@ -10,6 +10,7 @@ use Cone\Bazar\Models\Product; use Cone\Root\Fields\BelongsToMany; use Cone\Root\Fields\Editor; use Cone\Root\Fields\ID; +use Cone\Root\Fields\MorphToMany; use Cone\Root\Fields\Slug; use Cone\Root\Fields\Text; use Cone\Root\Resources\Resource; @@ -76,6 +77,10 @@ class ProductResource extends Resource ->groupOptionsBy('property.name'), Variants::make(), + + MorphToMany::make(__('Tax Rates'), 'taxRates') + ->display('name') + ->hiddenOn(['index']), ]; } }