public function getCroppedPhoto($column, $prefix, $suffix)
    {
        $extension = 'jpeg';
        if (isset($this->$column)) {
            $extension = pathinfo($this->$column, PATHINFO_EXTENSION) ?: $extension;
        }

        $photoName = config('admin.images.cropper.folder')
            .'/'.str_replace('_', '-', $this->getTable())
            .'/'.$column.'_'.$prefix.'_'.$this->id.'_'.$suffix.'.'.$extension;

        return Storage::disk($this->filesystem)->url($photoName);
    }
public function getCroppedPhoto($column, $prefix, $suffix)
    {
        $extension = 'jpeg';
        if (isset($this->$column)) {
            $extension = pathinfo($this->$column, PATHINFO_EXTENSION) ?: $extension;
        }

        $photoName = config('admin.images.cropper.folder')
            .'/'.str_replace('_', '-', $this->getTable())
            .'/'.$column.'_'.$prefix.'_'.$this->id.'_'.$suffix.'.'.$extension;

        return Storage::disk($this->filesystem)->url($photoName);
    }
public function getCroppedPhoto ( $ column , $ prefix , $ suffix ) { $ extension = 'jpeg' ; if ( isset ( $ this -> $ column ) ) { $ extension = pathinfo ( $ this -> $ column , PATHINFO_EXTENSION ) ? : $ extension ; } $ photoName = config ( 'admin.images.cropper.folder' ) . '/' . str_replace ( '_' , '-' , $ this -> getTable ( ) ) . '/' . $ column . '_' . $ prefix . '_' . $ this -> id . '_' . $ suffix . '.' . $ extension ; return Storage :: disk ( $ this -> filesystem ) -> url ( $ photoName ) ; }
Get the cropped photo url.

@param string $column
@param string $prefix
@param string $suffix

@return string
Get the cropped photo url .