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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1244363815177556119/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1244363815533940797/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1244363815731069059/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1244363815953498203/image.png)
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
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245297522625216522/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245297522855907338/image.png)
can you try
->options(AppointmentTime::class)
Oh yeah. It's options. Sorry.
I think
->enum()
is a leftover from v2![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245300972507365396/image.png)
and of i do it like this
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245301256080068628/image.png)
What version are you using?
v3
this one is working
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245302839316840478/image.png)
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? 😅
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245303309724684349/image.png)
Check the name of the first class. You have a typo
here is also the model
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1245303730593857556/image.png)
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