filament/filament
v3.2.82
v11.8.0
3.5.0
PHP 8.2.0
I get this error:
Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, App\Enums\MembershipStatuses given
From vendor/filament/forms/src/Components/Concerns/CanDisableOptions.php#39
Should get a table filtered with the relationship enum column when accessing the admin panel Membership Request resource
php artisan migrate:fresh --seed
to populate with a few rows and access the panel /admin with user [email protected] password="password"
I have a model MembershipRequest which have a BelongsTo relationship to a Membership class
The Membership class has a property 'status' which is casts to an Enum Class called MembershipStatuses
I add the filter to the filament table for resource MembershipRequest using a relationship() method to the membership status:
SelectFilter::make('membership.status')
->relationship('membership', 'status'),
My Model Membership has this $casts
protected $casts = [
'status' => App\Enums\MembershipStatuses::class, // Enum class
//...
];
And MembershipRequest has this relationship:
public function membership(): BelongsTo
{
return $this->belongsTo(Membership::class);
}
https://github.com/ngalso/filament-issue.git
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too