Closed jeffreydevreede closed 4 years ago
In addition, you can't deselect the chosen option to make it null when you aren't using ->searchable()
. The first option is disabled.
BelongsTo::make('User')->nullable(),
<option value="" disabled="disabled" selected="selected">Choose User</option>
Using Nova v2.6.1
@jeffreydevreede @JoshMoreno would you guys mind testing version 1.2.0 and let me know if that fixes things for you? Thanks!
This should now be working as of release 1.2.0. Please make sure to change the repo name in composer.json before updating. (see readme). Thanks!
This plugin breaks support of nullable fields. You can still press the
x
to remove the relation but it doesn't actually unset the value so when you click save the value isn't actuallynull
.See https://github.com/laravel/nova-issues/issues/1955 for more information.