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',
.........
];
'```
user' => [
'model' => App\Models\User::class,
'columns' => [
'name' => 'first_name',
'avatar' => 'avatar',
],
'foreign_key' => 'user_id',
],