Select option formatting
Good morning filament fans! Is there a way to have a select using a relationship to display 2 columns ? I.e. product code and name? E.g. "WD-001 Wooden blocks"
Solution
Sorry I did write a reply. I would personally recommend using a virtual column if using MySQL as:
https://laraveldaily.com/post/virtual-db-columns-laravel-migrations-mysql
Otherwise, you can use getOptionLabelUsing(fn($record) => $record->values)
https://laraveldaily.com/post/virtual-db-columns-laravel-migrations-mysql
Otherwise, you can use getOptionLabelUsing(fn($record) => $record->values)
