If model field casted as enum class, e.g.:
protected $casts = [
'user_type' => UserTypeEnum::class,
];
and select field is used to edit it:
Select::make('user_type')->options(
collect(UserTypeEnum::cases())
->mapWithKeys(fn($case) => [$case->value => $case->title()])
),
fatal php error is appearing:
