src/Models/Database/ProductImage.php
public function getPathAttribute($path)
    {
        if (null === $this->attributes['path'] || empty($this->attributes['path'])) {
            return;
        }

        $symlink = config('avored-framework.symlink_storage_folder');
        $relativePath = $this->attributes['path'];
        $localImage = new LocalFile($relativePath);

        return $localImage;
    }
public function getPathAttribute($path)
    {
        if (null === $this->attributes['path'] || empty($this->attributes['path'])) {
            return;
        }

        $symlink = config('avored-framework.symlink_storage_folder');
        $relativePath = $this->attributes['path'];
        $localImage = new LocalFile($relativePath);

        return $localImage;
    }
public function getPathAttribute ( $ path ) { if ( null === $ this -> attributes [ 'path' ] || empty ( $ this -> attributes [ 'path' ] ) ) { return ; } $ symlink = config ( 'avored-framework.symlink_storage_folder' ) ; $ relativePath = $ this -> attributes [ 'path' ] ; $ localImage = new LocalFile ( $ relativePath ) ; return $ localImage ; }
Get Path Attribute for the Image

@param string $path
@return \AvoRed\Framework\Image\LocalFile $localImage
Get Path Attribute for the Image