Comments (5)
Would you give me a real scenario where you need to modify the core migrations please, since I can see it possible to always migrate the core migrations first, and then alter tables the way you want from within your application migrations..
from laravel-attributes.
I have some additional fields for the attributes table, so the user can create via frontend a new attribute and like Magento, the user can decide how to validate the field, if the field should be unique. This is just an example, but I think there are also other scenarios.
Yes, that would be also a way to go, but in my opinion it's more intuitiv to publish the migrations and edit them after.
But as I said, I just wanted to discuss this solution. I don't know what others may think, but I just know other packages do it in that fashion.
from laravel-attributes.
I still believe the current package architecture is good, and there's nothing limits you from doing so. Your scenario is actually a real case we had, and we already implemented such interface as a solution for users to create attributes and attach it to other entities, and we can't see any limitation even whenever we need to alter database structure. We like to separate architecture layers which in my own opinion is better for separation of concerns and layer isolation, without losing flexibility. You can check that interface package here: rinvex/cortex-attributes in case you're interested in trying it.. 😉 As always, use the dev-develop
branch for all untagged packages!
from laravel-attributes.
Okay fine :) Are you interested in a new datatype (decimal)? I would create a pull request in the next days/weeks.
But thank you for your time! I'll take a look at it.
from laravel-attributes.
Yeah sure, please go ahead and add that new data type. PRs are always welcome 🙏
from laravel-attributes.
Related Issues (20)
- supporting Maria DB dynamic columns #1 HOT 1
- supporting Maria DB dynamic columns HOT 3
- ERROR: column "id" does not exist HOT 2
- Sortable attribute datetime HOT 1
- Lumen 8.x Installation Issue HOT 5
- jeremeamia/superclosure is abandoned HOT 1
- Class 'varchar' not found HOT 6
- How to work with Collections ? HOT 5
- Translations for Value content HOT 1
- Base table or view not found HOT 10
- How can I list out all of my attributes and values HOT 2
- List of available attributes for collection HOT 1
- Inserting values into a table that doesn't exist instead of attribute value table
- Attributable::relationsToArray() doesn't return entity attributes
- why we need to register entities? HOT 2
- Is there a plan to merge refactor-to-native-laravel-relationships ? HOT 1
- thank you for fantastic package HOT 1
- according to issue #158 HOT 3
- Laravel 9 support HOT 1
- 🟡 This package is abandoned and no longer maintained!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-attributes.