rinvex / laravel-attributes

⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
MIT License
433 stars 104 forks source link

Attributes for specific Entity? #106

Closed divdax closed 2 years ago

divdax commented 4 years ago

How i can add attributes for a specific model/entity, in my case ProductCategory? Not every product has the same attributes, so i want to bind certain attributes to a category and not all categories.

Omranic commented 2 years ago

That's the core of this package, but you need to understand how this package works first. You need to attach that attribute to the entity called Category, then you can assign that attribute to which category you want. Checkout the docs for more details: https://github.com/rinvex/laravel-attributes#manage-attribute-entities

Once you get your head around it, it will make sense and will feel easy and straightforward.