Laravel 5 on php artisan config:clear generated Closure::__set_state() error

后端 未结 7 948
情书的邮戳
情书的邮戳 2020-12-24 02:50

My code in on production and I ran

php artisan config:clear

After that, my code was not running. The index pages and all other pages went

7条回答
  •  一生所求
    2020-12-24 03:33

    Here is what I did to solve it:

    1. Go to /vendor/tymon/jwt-auth/src/config/config.php and replace the lines for storage and auth with:

    'auth' => 'Tymon\JWTAuth\Providers\Auth\IlluminateAuthAdapter',
    'storage' => 'Tymon\JWTAuth\Providers\Storage\IlluminateCacheAdapter'

    1. Go to /bootstrap/cache/config.php and delete it
    2. Run the following commands in order:
      A) php artisan config/cache
      B) php artisan jwt:generate
      C) php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\JWTAuthServiceProvider"

    and that should do it!

提交回复
热议问题