insert value from function when create
hello i want to insert new invoice_number from function when create the form.
I try using seems like no working at all.
please help, thank you!
Solution:Jump to solution
You should generate the invoice number using
mutateFormDataBeforeCreate
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving...5 Replies
maybe check out the ->default() function?
still doesnt work :"(
are you using a Resource or Custom Page?
Resource
Solution
You should generate the invoice number using
mutateFormDataBeforeCreate
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving