Can we get the inserted $record in the afterCreate() when a record is newly added?

The purpose is when a new record gets created, I need to add a default relation record as well. Is there anyway to achieve this?
1 Reply
Tieme
Tieme11mo ago
Yes this is possible, see docs for lifecycle hooks : https://filamentphp.com/docs/3.x/panels/resources/creating-records Assuming you create record on resource
Want results from more Discord servers?
Add your server