尝试按照网站上的说明安装Tymon / jwt-auth软件包并使用它: https://jwt-auth.readthedocs.io/en/develop/laravel-installation / 似乎发布配置似乎没有做任何事情,我没有看到config / jwt.php文件,并且命令 有没有人有任何关于让JWT在Laravel 5.7上工作的信息? p>
< p>已验证它位于composer.json中: p>
php artisan jwt:secret code>不做 任何有用的东西,说没有在“jwt”命名空间中定义的命令。 p>
“require”:{
“php”:“^ 7.1.3”,
“fideloper / proxy “:”^ 4.0“,
”laravel / framework“:”5.7。*“,
”laravel / tinker“:”^ 1.0“,
”tymon / jwt-auth“:”^ 0.5.12“
},
code> pre>
div>
Trying to install the Tymon/jwt-auth package and work with it, following the directions on the site: https://jwt-auth.readthedocs.io/en/develop/laravel-installation/ Doesn't seem like the publish configuration seems to do anything, I'm not seeing a config/jwt.php file, and the command php artisan jwt:secret
doesn't do anything useful, saying that there are no commands defined in the "jwt" namespace.
Does anyone have any info on getting JWT working on Laravel 5.7?
Verified that it is in the composer.json:
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0",
"tymon/jwt-auth": "^0.5.12"
},