Closed pinguinjkeke closed 8 years ago
I guess you want to get an entity with attributes right?
$company = Company::with('eav')->get();
No. I'm developing administrative part of application and I need to access value id for collection attributes. There are id, content, attribute_id and entity_id in value table. I need that id
Can you please explain it more widely? I am sorry but I do not understand.
You dont really need that because the attributes functions as properties in the model. So you save them by their property names (that is: the model property name === Attribute::whereName($name)).
How to get attribute id with entity attributes?