nova-belongsto-depend icon indicating copy to clipboard operation
nova-belongsto-depend copied to clipboard

[BUG] can't disable required rule from field

Open BadreddineZatout opened this issue 3 years ago • 1 comments

i have a belongsTo field that is not required but it won't allow me to leave it empty any solutions?

BadreddineZatout avatar May 16 '22 15:05 BadreddineZatout

You can set ->nullable() on the field. Example:

NovaBelongsToDepend::make('User', 'user', User::class)
                ->nullable(),

ricklambrechts avatar Jun 21 '22 16:06 ricklambrechts