-
Micheal Mand authored
Without this change, we can’t pass something like `product.attributes.color` as the “model”. This allows us to do some really weird things, like allow only the first child of some object to have media (e.x.: `model === ‘parent.children[0]’`). This does NOT prevent problems where the model doesn’t exist (you’ll get an error: `TypeError: Cannot read property 'medias_single' of undefined`), but that’s something that the developer should check (make sure you have the right path). The Typy package has some other neat things it can do, if you’re interested: https://github.com/flexdinesh/typySigned-off-by: Micheal Mand <micheal@kmdwebdesigns.com>
Name |
Last commit
|
Last update |
---|---|---|
.github | Loading commit data... | |
Modules | ||
Themes | ||
app | ||
bootstrap | ||
config | ||
database | ||
docker | ||
public | ||
resources | ||
routes | ||
storage | ||
tests | ||
.babelrc | ||
.env.example | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.htaccess | ||
.php_cs.dist | ||
.travis.yml | ||
LICENSE.md | ||
artisan | ||
composer.json | ||
dcp | ||
docker-compose.yml | ||
package.json | ||
phpunit.xml | ||
readme.md | ||
server.php | ||
travis.sh | ||
webpack.mix.js |