kongulov / nova-tab-translatable

This package contains a NovaTabTranslatable class you can use to make any Nova field type translatable with tabs.
MIT License
79 stars 17 forks source link

Add support for required_with rule #29

Closed bcoelhodev closed 1 year ago

bcoelhodev commented 1 year ago

Hi,

required_with rule is not working inside of NovaTabTranslatable. Is it possible to fix?

Example:

NovaTabTranslatable::make([
    Text::make('Link label Button', 'link_label')
        ->rules('required_with:link_url', 'max:255', 'nullable'),
    Text::make('Link url Button', 'link_url')
        ->rules('required_with:link_label', 'max:255', 'nullable'),
])

PHP 8.1.12 Laravel 9.40.1 Nova 4.19.2

kongulov commented 1 year ago

@bcoelhodev

Thank you very much for finding the problem! Problem solved, please update the package to the new version (2.0.11)