feat: filament for users
This commit is contained in:
@@ -2,9 +2,20 @@
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum PacePreference: string
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum PacePreference: string implements HasLabel
|
||||
{
|
||||
case SLOW = 'slow';
|
||||
case NORMAL = 'normal';
|
||||
case FAST = 'fast';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::SLOW => 'Lent',
|
||||
self::NORMAL => 'Normal',
|
||||
self::FAST => 'Rapide',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user