Enum
You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.
Extends
Select
* has the same features
Works the same as the Select field but accepts Enum
Model attribute requires EnumCast
use MoonShine\Fields\Enum; //... public function fields(): array{ return [ Enum::make('Status', 'status_id')->attach(EnumStatus::class) ];} //...