src/Chronos/Content/app/Models/Media.php
public function getStylesAttribute()
    {
        if (!$this->isImage)
            return null;

        $styles = [];
        foreach ($this->image_styles as $style)
            $styles[$style->style->name] = $style->file;

        return $styles;
    }
public function getStylesAttribute()
    {
        if (!$this->isImage)
            return null;

        $styles = [];
        foreach ($this->image_styles as $style)
            $styles[$style->style->name] = $style->file;

        return $styles;
    }
public function getStylesAttribute ( ) { if ( ! $ this -> isImage ) return null ; $ styles = [ ] ; foreach ( $ this -> image_styles as $ style ) $ styles [ $ style -> style -> name ] = $ style -> file ; return $ styles ; }
Add styles to model.
Add styles to model .