Export action to display data from relationships
Hi.. I have follow the documentation to display data from relation for the Export action (https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#displaying-data-from-relationships).
The problem is whe I use
but if I just use the gender relationship
I'm using filament 3.2. Here is my code. What is missing here?
I'm using filament 3.2. Here is my code. What is missing here?
The problem is whe I use
ExportColumn::make('gender.name'), the relation value is not showing.but if I just use the gender relationship
ExportColumn::make('gender') the whole relation value are show {"id":2,"name":"Female","created_at":"2024-02-08T04:18:13.000000Z","updated_at":"2024-02-08T04:18:13.000000Z","deleted_at":null}I'm using filament 3.2. Here is my code. What is missing here?
UserExporter.php
User.php
Gender.php
I'm using filament 3.2. Here is my code. What is missing here?

Solution
Have you tried updating Filament to latest version? There was a bug in early versions of 3.2 which caused relation data not to show up in export at all.