Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The $user variable stores the old state of the object, as it was before the passport was created.
If you get the user from the database again, then hasPassport will still show true. Have n't tried
option c . It is possible that in this case there will be a new request to the database, so it will work without the need to re-get the User object. return $this->passport()->exists();
Go to the element code or press F12 and bring up the console, then press F8 to pause all scripts on the javascript site
and copy what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question