diff --git a/src/Enums/TypeFieldEnum.php b/src/Enums/TypeFieldEnum.php index 4a7eb0d..386e1e9 100644 --- a/src/Enums/TypeFieldEnum.php +++ b/src/Enums/TypeFieldEnum.php @@ -2,7 +2,8 @@ namespace Joaopaulolndev\FilamentEditProfile\Enums; -use Joaopaulolndev\FilamentGeneralSettings\Traits\WithOptions; + +use Joaopaulolndev\FilamentEditProfile\Traits\WithOptions; enum TypeFieldEnum: string { diff --git a/src/Traits/WithOptions.php b/src/Traits/WithOptions.php new file mode 100644 index 0000000..3cd797c --- /dev/null +++ b/src/Traits/WithOptions.php @@ -0,0 +1,13 @@ +mapWithKeys(function ($item) { + return [$item->value => __($item->name)]; + })->toArray(); + } +}