Passing record to resource create page

Hey! I'am trying the following: I want to pass a record to the create page of a resource. I do this by customize the create entry in the getPages(). In the action where I link to the create page i pass the model. To this point everything works fine. But now I want to resolve the passed model and prefill some of the fields in the create form. Any ideas how I can achieve this?
Solution:
You would pass the fields in as query parameters in the route? then use the mount function to $this->form->fill ?
Jump to solution
2 Replies
Solution
toeknee
toeknee8mo ago
You would pass the fields in as query parameters in the route? then use the mount function to $this->form->fill ?
Philipp Bürger
Philipp BürgerOP8mo ago
Yeah this works, thank you! I passed it as a route parameter but it seems that there is no possibility to resolve this
Want results from more Discord servers?
Add your server