我使用Laravel文档安装了Laravel Passport,Laravel版本是5.4。Laravel Passport 404
一切都工作得很好,到目前为止,现在我将这些行添加到我的观点:
<!-- let people make clients -->
<passport-clients></passport-clients>
<!-- list of clients people have authorized to access our account -->
<passport-authorized-clients></passport-authorized-clients>
<!-- make it simple to generate a token right in the UI to play with -->
<passport-personal-access-tokens></passport-personal-access-tokens>
用户界面看起来不错,但如果我尝试添加一个新的客户端或令牌我得到这个消息:
哎呀!出了些问题!
Something went wrong. Please try again.
而且我的Chrome开发者控制台中显示我以下:
GET http://192.168.3.80/oauth/tokens 404 (Not Found) app.js:1175
GET http://192.168.3.80/oauth/personal-access-tokens 404 (Not Found) app.js:1175
GET http://192.168.3.80/oauth/scopes 404 (Not Found) app.js:1175
我按照步骤在文档中写着:https://laravel.com/docs/5.4/passport
后来我跟在视频这是步骤相同但它仍然不起作用。 https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13
如果我按下一个按钮,我得到了开发者控制台这篇文章错误:
POST http://localhost/oauth/clients 404(未找到) POST http://localhost/oauth/clients 404(未找到) POST http://localhost/oauth/clients 404(未找到)
所以这是由于路径?
VUE文件示出了该:
Clients.vue
store() {
this.persistClient(
'post', '/oauth/clients',
this.createForm, '#modal-create-client'
);
},
在你的'.env'文件中设置'APP_DEBUG = true',所以你可以看到详细的错误。 –
它是真实的我在哪里可以看到详细的? – utdev
然后,你应该看到一个详细的日志后'哎呀!出了点问题!'。 –