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
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