Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use Enums or String on dependsOn. #214

Open
sezohessen opened this issue Mar 19, 2023 · 0 comments
Open

Can not use Enums or String on dependsOn. #214

sezohessen opened this issue Mar 19, 2023 · 0 comments

Comments

@sezohessen
Copy link

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.

@sezohessen sezohessen changed the title Can not user Enums. Can not use Enums or String on dependsOn. Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant