Answers for "laravel store form error on illuminate\database\queryexception sqlstate[42s22]: column not found: 1054 unknown column '_id' in 'where clause' (sql: select count(*) as aggregate from `brands` where `_id` = 1)"

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

Code answers related to "laravel store form error on illuminate\database\queryexception sqlstate[42s22]: column not found: 1054 unknown column '_id' in 'where clause' (sql: select count(*) as aggregate from `brands` where `_id` = 1)"

Code answers related to "SQL"

Browse Popular Code Answers by Language