问题描述
我正在尝试使用Passport设置我的自定义API(嗯,我已经完成了一半,只需要构建身份验证即可).每当我尝试从Passport仪表板(/家庭路线)创建个人访问令牌时,都会出现糟糕,出问题了!".错误.
这来自我的Vue组件(PersonalAccessTokens.vue),我的控制台在发布"路由中记录了500个内部服务器错误,用于存储个人访问令牌...
\ Laravel \ Passport \ Http \ Controllers \ PersonalAccessTokenController @ store是负责任的方法,但我似乎并没有发现与众不同的东西,因为我确实完全按照有关护照的Laracasts视频
还有其他人遇到这个问题吗?
TIA!
我知道了.
显然,它无法读取我在使用以下命令设置Passport时应生成的我的个人访问令牌客户端:
运行此命令可以解决我的问题.
I'm trying to set up my custom API with Passport (well, I'm already halfway through, just need to build my authentication). Whenever I'm trying to create a personal access token from my Passport dashboard (/home route), I get a 'Whoops, something went wrong!' error.
This comes from my Vue component (PersonalAccessTokens.vue), and my console logs me a 500 internal server error at the Post route for storing personal access tokens...
\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@store is the method responsible but I can't seem to find something outof the ordinary as I did exactly follow the Laracasts video about Passport
Anyone else experiencing this problem ?
TIA!
I figured it out.
Apparently it can't read my personal access token client, that you should generate when setting up Passport by using the command: php artisan passport:install
Running this command solves my problem.
这篇关于Laravel 5.3个人访问令牌500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!