Passport: Error at Create Token and client

Created on 21 Nov 2017  ·  7Comments  ·  Source: laravel/passport

I have installed passport in my laravel project 4-5 days ago. Now I am trying to create token but is showing this error.
error

I have refreshed the migration, run the passport:install and passport:keys command but noting is working.
create client

The same issue is with create client.

Most helpful comment

I think i figure out the problem when i run the project with

php artisan serve

the project works normal.
with serve command

When I try to run it directly

without serve command

How can I resolve these errors.

All 7 comments

Check ur browser console errors.

I think i figure out the problem when i run the project with

php artisan serve

the project works normal.
with serve command

When I try to run it directly

without serve command

How can I resolve these errors.

As though its because project running under subdirectory.
You have two options point server to the public folder of your laravel project or fix route in the vue js.

Thank you it was really helpful.

i cant find route on vuejs ... can you help me @LeonAlvarez

@shofin-islam /resources/assets/js/components/Clients.vue

change it but not works, may be controller not working, i need to change the base url for vuejs. so that all function will work. can you help me to out this. @LeonAlvarez

Was this page helpful?
0 / 5 - 0 ratings

Related issues

parth-vora-7 picture parth-vora-7  ·  4Comments

duccanh0022 picture duccanh0022  ·  3Comments

SwiTool picture SwiTool  ·  3Comments

mind-control picture mind-control  ·  3Comments

Adesubomi picture Adesubomi  ·  4Comments