Proje dosyaları eklendi
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
namespace App\Enums;
|
||||
enum SearchEngine:string { case Google='google'; case Bing='bing'; public function label():string{return match($this){self::Google=>'Google',self::Bing=>'Bing'};} public static function options():array{return collect(self::cases())->mapWithKeys(fn($v)=>[$v->value=>$v->label()])->all();} }
|
||||
Reference in New Issue
Block a user