Errors in Select with new field Attribute appended to eloquent model
Hello.
I need a bunch of appended fields to several of my models. I have followed the normal Laravel usage for this:
I define the accessor and add Attribute in model:
And then I want to use it in my Select field like this:
And I get the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'my_new_field' in 'field list'
I have checked using Tinker and it works fine.
Any idea of what can be happening?
Tks.
I need a bunch of appended fields to several of my models. I have followed the normal Laravel usage for this:
I define the accessor and add Attribute in model:
And then I want to use it in my Select field like this:
And I get the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'my_new_field' in 'field list'
I have checked using Tinker and it works fine.
Any idea of what can be happening?
Tks.
