tuandm / laravue-core

Laravel package to provide core functionalities of Laravue dashboard
https://laravue.dev
MIT License
150 stars 49 forks source link

Login: Request failed with status code 500 #4

Closed JeffreyHosler closed 5 years ago

JeffreyHosler commented 5 years ago

The POST login works and returns a success message. But even with the success login in the console, i get the 500 error message and then this

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token' in 'where clause' (SQL: select * from users where api_token = {token} limit 1)

tuandm commented 5 years ago

@JeffreyHosler Thanks for reaching this project. Laravue-core uses jwt for guards api driver. Can you please check your config/auth.php and make sure guards.api.driver is jwt?

Ref: https://github.com/tuandm/laravue-core#2-config-api-guard

JeffreyHosler commented 5 years ago

ahhh yep I had a typo there. Thanks!