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

How do you store decimal like prices? #104

Closed divdax closed 3 years ago

divdax commented 4 years ago

I think this package need a new type. Why there is no decimal? If you want to store e.g. prices, volumes there i cannot use varchar or integer.

flakerimi commented 4 years ago

@divdax if still applicable, PR #119 fix this, or clone my fork

https://github.com/flakerimi/laravel-attributes

Omranic commented 3 years ago

The idea of this package is to provide the basic types, and to give you the ability to extend it easily to add your own custom types. You can so that by following the steps here https://github.com/rinvex/laravel-attributes#register-your-types

And here is an example https://github.com/rinvex/laravel-attributes/pull/119