Closed divdax closed 2 years ago
@Omranic ?
Thank you for your patience, this is limited by design, and it's difficult to implement the other way. For more details, check this: https://github.com/rinvex/laravel-attributes/blob/5aff4aef8eed44c64c55a13ec1cceabda650d7e9/src/Traits/Attributable.php#L189-L215
However, PRs to add this feature are welcome 🙂
Given i've two items of
App\Category
withAttributable
Trait and two attributes where each attribute is assigned to a specific category throughattribute_entity
table withentity_id
.Now when i'm trying to get the attribute for the first category with
it will return both attributes, but each category has only one attribute assigned.
Why?