Using the enum label with a text column in my table.

If you use a TextColumn with the Table Builder, and it is cast to an enum in your Eloquent model, Filament will automatically use the HasLabel interface to display the enum's label instead of its raw value.

I read the doc. That not work for me. Where am I do wrong?

CompanyResource.php

Tables\Columns\TextColumn::make('type'),


Company.php

protected $casts = [
    'type' => EmploymentType::class,
];
Solution
I don't have cast in my Model.
Was this page helpful?