Lumen uses laravel/passport. According to the official documentation, calling oauth/token can generate a token, but calling other routes will report an error. For example, calling oauth/clients will report a 500 error and prompt
< /p>
Then I found the file CreatesUserProviders
< /p>
But I don’t know what should be returned below and what middleware should be called?
Solved. Modify the driver value in the auth configuration file to eloquent. I didn’t read the documentation carefully before reading this problem