public function getFilePath($fileName)
    {
        if (file_exists(storage_path('app/'.$fileName))) {
            $filePath = storage_path('app/'.$fileName);
        } else {
            $filePath = Storage::disk(config('cms.storage-location', 'local'))->url($fileName);
        }

        return $filePath;
    }
public function getFilePath($fileName)
    {
        if (file_exists(storage_path('app/'.$fileName))) {
            $filePath = storage_path('app/'.$fileName);
        } else {
            $filePath = Storage::disk(config('cms.storage-location', 'local'))->url($fileName);
        }

        return $filePath;
    }
public function getFilePath ( $ fileName ) { if ( file_exists ( storage_path ( 'app/' . $ fileName ) ) ) { $ filePath = storage_path ( 'app/' . $ fileName ) ; } else { $ filePath = Storage :: disk ( config ( 'cms.storage-location' , 'local' ) ) -> url ( $ fileName ) ; } return $ filePath ; }
Get a file's path

@param  string $fileName

@return string
Get a file s path