Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

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

0

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 4 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.