Customizing option label from select with relationship
Since the relationship includes trashed products, how to modify the option label from e.g:
Laptop to Laptop (archived)for trashed products?LaptopLaptop (archived)Forms\Components\Select::make('product_id')
->label('Product')
->relationship('product', 'name', fn (Builder $query) => $query->withTrashed())
->searchable()