Enum with form->select
Why is it working for table->TextColumn but not for form->select?
Filament\Forms\Components\Select::getOptions(): Return value must be of type array, string returned
Filament\Forms\Components\Select::getOptions(): Return value must be of type array, string returned
Solution
OK a final review before we debug this:
1- is the enum class included in the resource file?
2- is the enum class included in the model file?
3- is it setup in
1- is the enum class included in the resource file?
use App\Enums\TitreEnum2- is the enum class included in the model file?
3- is it setup in
protected $casts?