Skip to content

HasOne::ofMany creating a model #4356

Discussion options

You must be logged in to vote

Has One of Many is essentially a snapshot of Has Many state (eg: Latest Post, Oldest Post, Latest Post from Last Quarter). Therefore it can be considered a read-only field. Furthermore, while we can add a "Create Resource" button and redirect it to the relevant resource create URL, the created resource may not comply with the relationship requirement, especially for Advanced Has One of Many and we still going to have people arguing over this (for bad UI/UX and misleading).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4349 on June 01, 2022 22:44.