Answers for "sqlstate[42s22]: column not found: 1054 unknown column 'users' in 'where clause' (sql: select `users`.*, `attendances`.* from `users` inner join `attendances` on `users`.`id` = `attendances`.`user_id` where `users` = role)"

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

Code answers related to "sqlstate[42s22]: column not found: 1054 unknown column 'users' in 'where clause' (sql: select `users`.*, `attendances`.* from `users` inner join `attendances` on `users`.`id` = `attendances`.`user_id` where `users` = role)"

Browse Popular Code Answers by Language