public function getAspectRatioAttribute()
    {
        if ($this->photo_width == 0 || $this->photo_height == 0) {
            return null;
        }
        return $this->photo_width/$this->photo_height;
    }
public function getAspectRatioAttribute()
    {
        if ($this->photo_width == 0 || $this->photo_height == 0) {
            return null;
        }
        return $this->photo_width/$this->photo_height;
    }
public function getAspectRatioAttribute ( ) { if ( $ this -> photo_width == 0 || $ this -> photo_height == 0 ) { return null ; } return $ this -> photo_width / $ this -> photo_height ; }
get the aspect ration with photo width and photo height

@return float|null
get the aspect ration with photo width and photo height