conditional-container
conditional-container copied to clipboard
Provides an easy way to conditionally show and hide fields in your Nova resources.
### Main changes Changed the way Vue knows when a field is updated. Previously it would watch it by accessing the parent component and then loop through its children to...
Nova Version: 3.32.0 I have following code structure ``` Toggle::make(__('Standard'), 'is_standard') ->trueColor('green') ->falseColor('red') ->default(true), ConditionalContainer::make([ BelongsTo::make(__('Task Category'), 'taskCategory', 'App\Nova\TaskCategory') ->rules('required') ]) ->if('is_standard truthy true'), ```   Unfortunately, the latest update of Nova 4 has brought breaking changes to this package, and it now requires significant updates to make it work. Due to us being...
Problem occurs when Image field is inside the conditional container. Image is displaying correctly but when you'll try to hit download link then you'll download missing 'download.html' file instead of...
As a reminder I wanted to say that Nova released a new version (v4). [Upgrade guide](https://nova.laravel.com/docs/4.0/upgrade.html).
I see the commit to support Benjacho\BelongsToManyFiel, but I'm still getting a `Trying to get property 'resourceClass' of non-object` error if I put it inside ConditionalContainer. I'm using - Nova...
``` MorphTo::make('Targetable')->types([ City::class, ]), ``` ``` ConditionalContainer::make([ Select::make('type') ->options([EmergencyTypes::GENERAL => EmergencyTypes::GENERAL]), ]) ->if(fn() => 'targetable_type = cities OR targetable = ' . City::uriKey()), // THIS WORK ->if(fn() => 'targetable =...
Below code not working in ConditionalContainer ``` php Text::make('Test')->canSee(function (NovaRequest $request) { return $request->user()->hasAnyRole('SUPER_ADMIN'); }), ```