Skip to content

Default values for BelongsTo relations are shown on index/detail with an empty link #3419

Answered by crynobone
sedlatschek asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's the current behavior for default. For such a requirement, you mostly just want a default value on creating.

https://crynobone.com/add-field-default-only-on-create-on-laravel-nova/

There a PR merged to add this for next major release.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3418 on June 02, 2021 23:06.