FilamentF
Filament3y ago
Hro

Getting the attached and parent record in a relation manager hook

I know there is a way, I just cannot seem to directly figure out which one.
                Tables\Actions\AttachAction::make()->after(function () {
                    dd('attached');
                }),
                Tables\Actions\CreateAction::make()->after(function () {
                    dd('Created');
                }),


In the hooks above, how can I get the attached record and the record it was attached to?
Was this page helpful?