amontamas
amontamas
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
I needed somyhing like this: case BUDAPEST = 'BUDAPEST';
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
I think i understand now
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
Ok i try it. Thanks.
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
Bat where stote the key=>value parts? Database or contig file or what?
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
And what do you think, what is the best solution to store select datas like these in the database?
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
Oh I see this is a php feature. I have to read about it.
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
In the tinker:
$county = App\Enums\County::PEST
= App\Enums\County {#7178
+name: "PEST",
+value: "Pest",
$county = App\Enums\County::PEST
= App\Enums\County {#7178
+name: "PEST",
+value: "Pest",
In this i thinked the optiopn be like this: <option value="PEST">Pest</option> Is this not correct?
19 replies
FFilament
Created by amontamas on 5/1/2025 in #❓┊help
Enum select key is not the constant but the value
It is mean the option value is the same the label? <option value="value">value</option>
19 replies