\Laravel\Passport\Http\Middleware\CreateFreshApiToken::class
但是laravel5.5版本却有个bug ,导致axios访问会一直返回Unauthenticated 500
\Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
Typically, if you want to consume your API from your JavaScript application, you would need to manually send an access token to the application and pass it with each request to your application. However, Passport includes a middleware that can handle this for you. All you need to do is add the CreateFreshApiToken middleware to your web middleware group:
在修改过后 可能会遇到unserialize(): Error at offset 0 of 40 bytes