OwenMelbz / nova-radio-field

Provides a radio field for laravel nova with ability to toggle field visibility.
34 stars 31 forks source link

validation errors don't show #12

Closed JoshMoreno closed 4 years ago

JoshMoreno commented 4 years ago

Validation errors don't show.

RadioButton::make('My Field')
    ->options([
        'savings' => 'Savings',
        'checking' => 'Checking',
    ])
    ->rules('required')
    ->default(''),

The ->default('') is a workaround for #10

I'll submit a PR.