Save multiple events in the DB

Hello, i need a little support. I have a modal in which the user can create events. Among other things, he also has the option of clicking on daily or weekly repetitions and entering an end date. Now my question: Where can I influence the storage and save several, individual events in the database for recurrences? Thanks for the help - I'm new to Filament / Laravel BR Thomas
No description
5 Replies
bwurtz999
bwurtz9999mo ago
If you did, follow the steps here
bwurtz999
bwurtz9999mo ago
You need to modify the create action function
CreateAction::make()
->using(function (array $data, string $model): Model {
return $model::create($data);
})
CreateAction::make()
->using(function (array $data, string $model): Model {
return $model::create($data);
})
within the ->using() callback you can write custom logic to handle whatever you need
Major Tom
Major TomOP9mo ago
Thank you - that's what I was looking for. Sometimes it's that simple 😉

Did you find this page helpful?