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
434 stars 104 forks source link

List of available attributes for collection #163

Closed mmehdizadeh closed 2 years ago

mmehdizadeh commented 2 years ago

I need to get all available attributes with type of that for specific collection for example : Post::where('category_id',2)->getAllAttributes(); Note: my posts have different attributes.

Omranic commented 2 years ago

All attributes are returned as properties of that specific model by default, you can treat them like any other native properties. Check out the documentation here https://github.com/rinvex/laravel-attributes#usage