Support the ongoing development of →
Last updated 1 year ago.

How can i retrieve allready existing token?$user->token() return null.


HI @Jonston

I don't use passport and without more code, I can't identify what problems you have in your code.

So please watch that tutorial or find another and move step by step and you will eventually find where the problem is.

Also, create a minimal example with your problem uploaded on github or gitlab and post the link here so that everybody can help more.

As a final idea have you tried to dd in the controller where you create the token?

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.