gothinkster / laravel-realworld-example-app

Exemplary real world backend API built with Laravel
https://realworld.io
MIT License
1.2k stars 1.05k forks source link

Fix jwt secret generate command #43

Closed minchao closed 2 years ago

minchao commented 3 years ago

Command "jwt:generate" is not defined in tymon/jwt-auth 1.0.0-rc.4.1

Error:

$ php artisan jwt:generate
  Command "jwt:generate" is not defined.  

  Did you mean one of these?              
      event:generate                      
      ide-helper:generate                 
      jwt:secret                          
      key:generate                        

Fix:

See doc: https://github.com/tymondesigns/jwt-auth/blob/1.0.0-rc.4.1/docs/laravel-installation.md#generate-secret-key