Property [$record] not found on component:

I try to access the record which is just created using $record on after() life cycle hook but i got the error Property [$record] not found on component:. Thank you in advance for your help
Solution:
Or probably: ```php ->after(function ($record) { //$data...
Jump to solution
4 Replies
LeandroFerreira
->after(function (array $data) {
//$data
})
->after(function (array $data) {
//$data
})
?
Solution
Dennis Koch
Dennis Koch2y ago
Or probably:
->after(function ($record) {
//$data
})
->after(function ($record) {
//$data
})
LeandroFerreira
yes, ($record) 👌
Bloom
BloomOP2y ago
Thank you guys

Did you find this page helpful?