enum only showing the path
i want to call AppointmentTime but for some reason i get the path inside bot the label can anyone tell me what i did wrong
28 Replies
What you did is pass one option with the name of your class.
You should use
->enum()
now it give me nothing inside
can you try
->options(AppointmentTime::class)
Oh yeah. It's options. Sorry.
I think
->enum()
is a leftover from v2and of i do it like this
What version are you using?
v3
this one is working
weird, I used it like this only and never run a problem..
i dont know one is working and the other one is not working
Wait? Isnt't this the exact one you just sent the error for?!
this one is status
It's a different Enum
same
What's the difference between those two? 😅
Check the name of the first class. You have a typo
here is also the model
one is time and the other is status
Your file name is
AppointementTime.php
notice extra e
in class name, I wonder how you import correctly in your castsyeah i change the name of the file and it is working now thank you
->options(AppointmentTime::class)
not ->options([AppointmentTime::class])
Good morning. We already solved this issue 😅
You can go on. Nothing to see here.
i didnt see where that bit was fixed lol
oh here
mb
Pretty much the first answer from Vp 😅
https://discord.com/channels/883083792112300104/1244363814854721647/1245299428768612382