Answers for ""SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field list'"

PHP
3

Column not found: 1054 Unknown column 'updated_at'

// turn off both 
public $timestamps = false;

// turn off only updated_at
const UPDATED_AT = false;
Posted by: Guest on December-22-2020
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 '0' in 'field list'"

Browse Popular Code Answers by Language