stepanenko3 / nova-boolean-group-field

Nova BooleanGroup advanced field based on native Nova field
MIT License
6 stars 0 forks source link

Plugin not work in Laravel Nova >= 4.29.6 #4

Open wamesro opened 9 months ago

wamesro commented 9 months ago

Hello from Laravel Nova version >= 4.29.6 this plugin has no working with options set in dependsOn() and action

Current version 4.32.1 still not working

BelongsTo::make('Product', 'product', Product::class),

BooleanGroup::make('Variant', 'variant')
    ->dependsOn(['product'], function (BooleanGroup $field, NovaRequest $request, FormData $formData): void {
        $productId = $formData->product;

        if ($productId) {
            $options = ProductVariantController::getVariantsByProductId($productId);

            $field->options($options);
        }
    }),

Snímka obrazovky 2023-11-22 o 14 12 13

Snímka obrazovky 2023-11-22 o 14 14 14

wamesro commented 7 months ago

@stepanenko3 do you have any idea what to do with it?