This commit is contained in:
Adrian Hopek
2022-01-18 07:39:03 +01:00
parent 7dca5d1e6c
commit acf2eba95d
17 changed files with 644 additions and 32 deletions

View File

@@ -15,4 +15,14 @@ enum FormOfEmployment: string
{
return __($this->value);
}
public static function casesToSelect(): array
{
$cases = collect(FormOfEmployment::cases());
return $cases->map(fn(FormOfEmployment $enum) => [
"label" => $enum->label(),
"value" => $enum->value]
)->toArray();
}
}