public function getImageAttribute()
    {
        // It should have image
        if ($this->exists) {
            return $this->image();
        }

        return isset($this->attributes['image']) ? $this->attributes['image'] : null;
    }
public function getImageAttribute()
    {
        // It should have image
        if ($this->exists) {
            return $this->image();
        }

        return isset($this->attributes['image']) ? $this->attributes['image'] : null;
    }
public function getImageAttribute ( ) { // It should have image if ( $ this -> exists ) { return $ this -> image ( ) ; } return isset ( $ this -> attributes [ 'image' ] ) ? $ this -> attributes [ 'image' ] : null ; }
Image getter.

@return \Routegroup\Media\File|null
Image getter .