Answers for "Column not found: 1054 Unknown column 'api_token' in 'where clause"

PHP
1

Column not found: 1054 Unknown column 'api_token' in 'where clause

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'passport',//instead of token 
        'provider' => 'users',
        'hash' => false,
    ],
],
Posted by: Guest on June-04-2021
-1

how to fix Column not found: 1054 Unknown column 'api_token' in 'where clause' (SQL: select * from `users` where `api_token laravel

1.So to answer this question, after racking my brain, I decided to clear the application, configuration, and route caches,that did the trick for me.

  php artisan cache:clear
  
2.You can run the above statement in your console when you wish to clear the application cache. What it does is that this statement clears all caches inside storage\framework\cache.

  php artisan route:cache
  
3.This clears your route cache. So if you have added a new route or have changed a route controller or action you can use this one to reload the same.

  php artisan config:cache
Posted by: Guest on April-30-2020

Code answers related to "Column not found: 1054 Unknown column 'api_token' in 'where clause"

Browse Popular Code Answers by Language