Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column not found: 1054 Unknown column 'users.name' in 'field list' #41

Open
Kwenziwa opened this issue Dec 22, 2024 · 0 comments
Open

Comments

@Kwenziwa
Copy link

I encountered an error while running a query or interacting with the application. The error message states that the column users.name does not exist in the database. I've replaced the name field with separate first_name and last_name fields.

protected $fillable = [
'first_name',
'middle_name',
'last_name',
'avatar',
.........
];

Screenshot 2024-12-22 at 2 59 39 PM

'```
user' => [
'model' => App\Models\User::class,
'columns' => [
'name' => 'first_name',
'avatar' => 'avatar',
],
'foreign_key' => 'user_id',
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant