• Micheal Mand's avatar
    Allow deeply nested objects to have media · 773f160a
    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: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
    773f160a
Name
Last commit
Last update
.github Loading commit data...
Modules Loading commit data...
Themes Loading commit data...
app Loading commit data...
bootstrap Loading commit data...
config Loading commit data...
database Loading commit data...
docker Loading commit data...
public Loading commit data...
resources Loading commit data...
routes Loading commit data...
storage Loading commit data...
tests Loading commit data...
.babelrc Loading commit data...
.env.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
.php_cs.dist Loading commit data...
.travis.yml Loading commit data...
LICENSE.md Loading commit data...
artisan Loading commit data...
composer.json Loading commit data...
dcp Loading commit data...
docker-compose.yml Loading commit data...
package.json Loading commit data...
phpunit.xml Loading commit data...
readme.md Loading commit data...
server.php Loading commit data...
travis.sh Loading commit data...
webpack.mix.js Loading commit data...