Fill other fields (not part of the form) after Create

Hello, is there a way to fill fields of my Model that are not part of the form, for example I have a Title and Slug fields, but don't have the slug text box on the form since it is created 'behind the scenes' from the Title field. Or any other field that is not part of the form but it is required to have a value while creation happens. They are not part of the $data array so can't change them with mutateFormDataBeforeSave
3 Replies
ralphredd
ralphreddOP17mo ago
Ah, so inside the method I will just use regular Model::create and mixed the $data with my own values, correct?
Lara Zeus
Lara Zeus17mo ago
yes, and you will have access to the form data: $this-data
Want results from more Discord servers?
Add your server