laravel / nova-issues

554 stars 35 forks source link

Using Default Values For Boolean Field in Action #2796

Closed mstaack closed 4 years ago

mstaack commented 4 years ago

Description:

Using Fields in an Action

    public function fields()
    {
        return [
            Boolean::make('Send Mail', 'with_mail')->default(
                fn() => true
            ),
        ];
    }

image

Does not check the checkbox by default. Any Ideas how to achieve this? Is this a Bug?

davidhemphill commented 4 years ago

This has been fixed and will be included in the next release. 👍

mstaack commented 4 years ago

thanks for the fix!

ziming commented 4 years ago

What about BooleanGroup?

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.