我使用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
然後,你應該看到一個詳細的日誌後'哎呀!出了點問題!'。 –