F
Filamentβ€’2y ago
Bloom

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
LeandroFerreiraβ€’2y ago
->after(function (array $data) {
//$data
})
->after(function (array $data) {
//$data
})
?
Solution
Dennis Koch
Dennis Kochβ€’2y ago
Or probably:
->after(function ($record) {
//$data
})
->after(function ($record) {
//$data
})
LeandroFerreira
LeandroFerreiraβ€’2y ago
yes, ($record) πŸ‘Œ
Bloom
BloomOPβ€’2y ago
Thank you guys
Want results from more Discord servers?
Add your server