Closed codercms closed 8 years ago
You are creating an attribute for *
... I know package is not yet documented...
INSERT INTO `eav_attributes` (`id`, `code`, `label`, `model`, `entity`, `collection`, `default_value`) VALUES
(2, 'city', 'city', 'Devio\\Eavquent\\Value\\Data\\Varchar', 'App\\Models\\Book', 0, NULL);
The entity
represents the model you attach the value to, and the model
is the data type... I am updating this naming to make it more understandable.
Remember package is not production ready and things may break / change.
If you are pointing to dev-master
there are two columns that have changed on the Attributes table:
code
by name
model
by type
ping @codercms
@IsraelOrtuno thanks for the information ;)
I addeed following entry to the eav_attributes table:
Code of books model:
Code of books controller:
Call stack: