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

Custom options attribute #56

Closed IsraelOrtuno closed 2 years ago

IsraelOrtuno commented 6 years ago

I was thinking about adding a options JSON like column into the attributes table (or maybe into attribute_entity?) so it could store some extra information about the attribute that can be used to customise the attribute behaviour in the application.

From the package point of view, it would just be a write/read column, so no extra coding needed.

We can se an example of a practical usage (field options):

screen shot 2018-06-19 at 12 53 49

Thoughts?

Omranic commented 6 years ago

What about using spatie/laravel-schemaless-attributes for implementing this?

It's funny that an attributes package will be using another attributes package 😅

Anyway if this proposal is gonna be considered, we should drop the current is_required field.

IsraelOrtuno commented 6 years ago

I do actually like the package, but isn't a bit tricky to make users learn how to user other package for a simple JSON column?

Omranic commented 6 years ago

I agree, let's do it the simple way 👍

IsraelOrtuno commented 6 years ago

Have you considered adding validation rules to attributes?

Omranic commented 6 years ago

More details please.. 🤔

IsraelOrtuno commented 6 years ago

It was just a quick thought, not sure if makes sense at all but something like being able to set an array of Laravel validation rules to Value models.

Omranic commented 6 years ago

Well, I'd love to see something like that 😋

batFormat commented 5 years ago

@IsraelOrtuno Any update?

Omranic commented 2 years ago

Closing this issue due to inactivity. However, the idea is still valid and I'd be happy to consider any PRs! 😉