menu

Questions & Answers

Laravel sanctum

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token' in 'where clause' (SQL: select * from users where api_token

added sanctum driver does not solve the issue and app not works again

Comments:
2023-01-17 00:47:51
did you adjust the guard to be used? that sounds like the api guard is being used (TokenGuard)
2023-01-17 00:47:51
did you run migrations ? because your error show that your database is missing some fields.
Answers(0) :