epartment / nova-dependency-container

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

Suddenly stopped working - Laravel v6.18 #138

Closed hasnatbabur closed 4 years ago

hasnatbabur commented 4 years ago

Was working fine earlier. Suddenly stopped working.

I have similar codes like this for link type, text type, image type:

        NovaDependencyContainer::make([
            Textarea::make('Content', 'content')->rows(1)
                ->rules(['required'])->alwaysShow(),
        ])
        ->dependsOn('type', post_type_link())
        ->hideFromIndex(), // hide index

It is no longer toggling for different post type field. Thanks

hasnatbabur commented 4 years ago

The problem was with Enums and case sensitivity. It is fixed now. Thanks