Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column in
An unhandled exception occurred on line 678
675 |
|
---|---|
676 |
|
677 |
|
678 |
|
679 |
|
680 |
|
Solution
I was using eloquent Were to get a user role by doing whereRoleId, but instead I mistakenly had it written with a capital ID which wasn't supposed to be so as it didn't match the table column name.
Apr 11, 2021
•
Anyone
Install the browser extension
Found this solution helpful? Try our extension for quick solutions to your Laravel errors.
Add to Chrome - It's free
0 replies