src/app/helpers/HCImageThumbs.php
protected function getOriginalFile($resource)
    {
        $file = null;
        $path = storage_path('app/' . $resource->path);

        if( ! File::exists($path) ) {
            HCLog::error('R-THUMB-001', 'File not found at path: ' . $path);
        } else if( $resource->isImage() || strpos($resource->mime_type, 'svg') !== false ) {
            $file = File::get($path);
        }

        return $file;
    }
protected function getOriginalFile($resource)
    {
        $file = null;
        $path = storage_path('app/' . $resource->path);

        if( ! File::exists($path) ) {
            HCLog::error('R-THUMB-001', 'File not found at path: ' . $path);
        } else if( $resource->isImage() || strpos($resource->mime_type, 'svg') !== false ) {
            $file = File::get($path);
        }

        return $file;
    }
protected function getOriginalFile ( $ resource ) { $ file = null ; $ path = storage_path ( 'app/' . $ resource -> path ) ; if ( ! File :: exists ( $ path ) ) { HCLog :: error ( 'R-THUMB-001' , 'File not found at path: ' . $ path ) ; } else if ( $ resource -> isImage ( ) || strpos ( $ resource -> mime_type , 'svg' ) !== false ) { $ file = File :: get ( $ path ) ; } return $ file ; }
Get original file instance

@param $resource
@return mixed
Get original file instance