Using custom function in a form
I have a page where I have a form textarea, in the textarea I have all the ids divided by comma example: qIcTM8WXFjk,8X2kIfS6fb8
These ids are processed through a function of mine:
How can I tell Filamentphp to use this function to post data? Also, how do I add a button next to "New Video" in the header? In the documentation I find only references to how to add buttons in tables
These ids are processed through a function of mine:
How can I tell Filamentphp to use this function to post data? Also, how do I add a button next to "New Video" in the header? In the documentation I find only references to how to add buttons in tables
Solution
you can use hooks to process your data
https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks
https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks