epartment / nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values
MIT License
382 stars 163 forks source link

Can not use Enums or String on dependsOn. #214

Open sezohessen opened 1 year ago

sezohessen commented 1 year ago

My field :

NovaDependencyContainer::make([
                BelongsTo::make(__('Inventory'),'inventory_out_product',InventoryOutProduct::class)->display(function($inventory){
                    return $this->inventory_text_format($inventory);

                })->rules('required')->onlyOnForms()->hideWhenUpdating(),
            ])->dependsOn('order.delivered_type', OrderDeliveredType::Direct()),

I can not use enum on dependsOn or ANY string in the second parameter.