showCreateRelationButton() not including Related Model Field #4402
Replies: 3 comments
-
|
Duplicate of #3335 |
Beta Was this translation helpful? Give feedback.
-
|
I'm also wondering about this. How can I specify default values, filter dropdowns or completely customize the "Attach" screen. If I can override the "Attach resource" on the parent resource, I'll just make a custom [resource]AttachTool, but can I do this ? I'm new to Nova but a seasoned developer. I find Nova incredibly powerful, for basic crud (including Laravel relationships), but it seems to lack in term of API documentation. To achieve their moto "Making [us] the most productive developers", complete docs on the extents of possible customizations are needed. |
Beta Was this translation helpful? Give feedback.
-
|
Here is an example of why this is necessary: A Form The issue is even more complex when Creating, because the Form model doesn't exist yet, but not sure if there is a solution for that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
/nova/Input.php
/nova/resources/inputs/<id>/attach/options?viaRelationship=options&polymorphic=0When I click the Create button on the Relationship, I want to be able to know the ID of the requesting Resource for use in the Modal: to get the Input's ID.
It should be possible in the
NovaRequest $requestbut I am not seeing anything.Beta Was this translation helpful? Give feedback.
All reactions