I installed Laravel Passport using the Laravel docs, the Laravel version is 5.4.
Everything worked fine so far now I add these lines into my view:
<!-- 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>
The Ui looks good, but if I try to add a new Client or Token I get this message:
Whoops! Something went wrong!
Something went wrong. Please try again.
And my Chrome dev console shows me following:
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
I followed the steps writing in the docs: https://laravel.com/docs/5.4/passport
Afterwards I followed the steps at the video which are the same but it still does not work. https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13
If I press on a button I get this post error in the dev console:
POST http://localhost/oauth/clients 404 (Not Found) POST http://localhost/oauth/clients 404 (Not Found) POST http://localhost/oauth/clients 404 (Not Found)
So it is due to the path?
The vue file shows this:
Clients.vue
store() {
this.persistClient(
'post', '/oauth/clients',
this.createForm, '#modal-create-client'
);
},