Search code examples
laravelapiemailbreeze

Laravel returning email not verified even it is verified


I have this screenshots of my problem. So basically I'm new to Laravel and I'm using api to interact. I have this breeze setup, and got my first user register and verified email. However, when accessing a protected route, it is still saying email not verified. Here is my messed up codes in laravel https://github.com/isaacnewtonaranas/api24

enter image description here


Solution

  • Do you cache user data? If you cached, you must flush the cache first. And also you can set flush cache in booted method on user's model