Closed PrafullaKumarSahu closed 5 years ago
Update, I am getting error SQLSTATE[42S22]: Column not found: 1054 Unknown column 'resourceTitle' in 'field list' (SQL: select
id,
resourceTitlefrom
addresseswhere
addresses.
customer_id= 1 and
addresses.
customer_idis not null)
.
I solved the issue, In customer address $customer->addresses()->get(['id','building_number', 'street', 'city', 'country', 'postcode'] I need to pull all columns that is used in resourceTitle
and that is working fine.
I have created an extra attribute to my Address model like
and set the resource title as
$title = 'resourceTitle';
and want that in select box, it is just similar to another question you have answered, but seems not working for me, can you give me any clue on it?