Answers for "store error laravel sqlstate[42s22]: column not found: 1054 unknown column 'id' in 'where clause' (sql: select"

SQL
2

laravel php "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column '' in 'where clause' (SQL: select count(*) as aggregate from `packages` where `` = 0 and (`` = 1) and `packages`.`deleted_at` is null)",

this means that your column name is incorrect

1. run php artisan migrate
2. check your column name dictation
Posted by: Guest on October-14-2021
0

IlluminateDatabaseQueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list'

class ABC extends Model {
//to turn of just one field
const UPDATED_AT = null;
//to turn off timestamp completely
public $timestamps = false;
Posted by: Guest on June-22-2021

Code answers related to "store error laravel sqlstate[42s22]: column not found: 1054 unknown column 'id' in 'where clause' (sql: select"

Code answers related to "SQL"

Browse Popular Code Answers by Language