Comments (10)
Did you create & execute a migration for your Poll
model? If no, please do so. This is related to your Poll
model, not this package. For more info check:
https://laravel.com/docs/8.x/migrations
https://laravel.com/docs/8.x/eloquent
from laravel-attributes.
Did you create & execute a migration for your Polls model?
Yes, I did. But, while doing
$p = Poll::where('link', 'AAA')->first();
("Rinvex Attributes tries to do everything in the same way Eloquent would normally do" !) I got QueryException "Column not found: 1054 Unknown column 'link' in 'where clause'". What's wrong?
from laravel-attributes.
Can you execute the following code and tell me what's the output:
app('rinvex.attributes.attribute')->where('slug', 'link')->get();
Also can you confirm what's your fully qualified Poll
model namespace.
from laravel-attributes.
from laravel-attributes.
I was a little confused
Why should the Product table be created and according to the document, when I want to create a custom attribute price, it gives an error that the price column is not available !!!
from laravel-attributes.
@vahidalvandi What product table? 🙂
from laravel-attributes.
hi @Omranic product table in https://github.com/rinvex/laravel-attributes#assigning-values and according @kis60 poll table . please show a demo
from laravel-attributes.
This is just an example, you need to create that table yourself. That example could be Product
or Article
or anything else, that's your business logic and not within the scope of this package to cover.
from laravel-attributes.
i need this senario do it work ?
i have lead table with three columns (id , name , lname) . i want admin can add multi cloumn like mobile , email without change table .
from laravel-attributes.
Yes it works, but you can achieve that through different ways. You can use this EAV package, or use a more simple approach the get the job done as well https://github.com/spatie/laravel-schemaless-attributes
That's why I mentioned previously if you don't know EAV and want that model specifically, you probably don't need it at all, and probably there's a better more simple solution to solve your challenge.
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
- 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.