• 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
..
Assets Loading commit data...
Blade Loading commit data...
Composers/Backend Loading commit data...
Config Loading commit data...
Console Loading commit data...
Contracts Loading commit data...
Database Loading commit data...
Entities Loading commit data...
Events Loading commit data...
Helpers Loading commit data...
Http Loading commit data...
Image Loading commit data...
Jobs Loading commit data...
Providers Loading commit data...
Repositories Loading commit data...
Resources/views/admin Loading commit data...
Services Loading commit data...
Support Loading commit data...
Tests Loading commit data...
Transformers Loading commit data...
UrlResolvers Loading commit data...
Validators Loading commit data...
ValueObjects Loading commit data...
.gitignore Loading commit data...
.sensiolabs.yml Loading commit data...
LICENSE.md Loading commit data...
changelog.yml Loading commit data...
composer.json Loading commit data...
grumphp.yml Loading commit data...
module.json Loading commit data...
phpunit.xml Loading commit data...