Answer the question
In order to leave comments, you need to log in
How to correctly issue a Token in Laravel?
Tell me, is it right to create a Personal Access Token immediately when registering or authorizing a user, or is this not acceptable and you need to bother with registering client_id, client_secret, code, etc.?
As part of the study, I'm trying to create registration and authorization on the site through the API. Laravel Passport + Vue. I would like to understand in the right direction I'm moving or not.
$user->createToken('Personal Access Token');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question