Closed mmehdizadeh closed 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
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.