title: Why I got error This driver does not support retrieving URLs with cloudinary-laravel?
body: <p>In laravel 8 app I need to upload images from local storage into cloudinary ( with cloudinary-laravel 1.0)
  with code like :</p>
  <pre><code>Storage::disk('cloudinary')-&gt;put('cl_filename.ext', Storage::disk('local')-&gt;get('local_filename.ext'));
  </code></pre>
  <p>But I got error:</p>
  <pre><code>This driver does not support retrieving URLs.
  </code></pre>
  <p>having in env file:</p>
  <pre><code>CLOUDINARY_URL=&quot;cloudinary://XXXXXXXXXXX:XXXXXXXXXXXXX@cloudinaryname&quot;
  CLOUDINARY_UPLOAD_PRESET=ml_default
  CLOUDINARY_NOTIFICATION_URL=
  CLOUDINARY_ROOT_DIRECTORY=TAdsMedia
  
  CLOUDINARY_API_KEY=XXXXXXXXXXX
  CLOUDINARY_API_SECRET=XXXXXXXXXXXXX
  CLOUDINARY_API_NAME=cloudinaryname
  </code></pre>
  <p>When I use cloudinary methods like storeOnCloudinaryAs, it works ok for me, but not storage methods.
  In config/filesystems.php I added lines :</p>
  <pre><code>'disks' =&gt; [
  
      'local' =&gt; [
          'driver' =&gt; 'local',
          'root' =&gt; storage_path('app'),
      ],
  
  
      'cloudinary' =&gt; [// NOT SURE ARE THESE PARAMS VALID ?
          'driver'     =&gt; 'cloudinary',
          'api_key'        =&gt; env('CLOUDINARY_API_KEY'),
          'api_secret'     =&gt; env('CLOUDINARY_API_SECRET'),
          'cloud_name'     =&gt; env('CLOUDINARY_API_NAME'),
      ],
  
      'public' =&gt; [
          'driver' =&gt; 'local',
          'root' =&gt; storage_path('app/public'),
          'url' =&gt; env('APP_URL').'/storage',
          'visibility' =&gt; 'public',
      ],
  
      's3' =&gt; [
          'driver' =&gt; 's3',
          'key' =&gt; env('AWS_ACCESS_KEY_ID'),
          'secret' =&gt; env('AWS_SECRET_ACCESS_KEY'),
          'region' =&gt; env('AWS_DEFAULT_REGION'),
          'bucket' =&gt; env('AWS_BUCKET'),
          'url' =&gt; env('AWS_URL'),
          'endpoint' =&gt; env('AWS_ENDPOINT'),
      ],
  
  ],
  </code></pre>
  <p>But clearing cache I have the same error anyway...</p>
  <p>Is something wrong with my configurations and how can it be fixed?</p>
  <pre><code>composer.json :
  {
      &quot;name&quot;: &quot;laravel/laravel&quot;,
      &quot;type&quot;: &quot;project&quot;,
      &quot;description&quot;: &quot;The Laravel Framework.&quot;,
      &quot;keywords&quot;: [
          &quot;framework&quot;,
          &quot;laravel&quot;
      ],
      &quot;license&quot;: &quot;MIT&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;^7.3|^8.0&quot;,
          &quot;arcanedev/log-viewer&quot;: &quot;^8.1&quot;,
          &quot;arcanedev/no-captcha&quot;: &quot;^12.2&quot;,
          &quot;cloudinary-labs/cloudinary-laravel&quot;: &quot;^1.0&quot;,
          &quot;cviebrock/eloquent-sluggable&quot;: &quot;^8.0&quot;,
          &quot;diglactic/laravel-breadcrumbs&quot;: &quot;^6.1&quot;,
          &quot;drewm/mailchimp-api&quot;: &quot;^2.5&quot;,
          &quot;fideloper/proxy&quot;: &quot;^4.4&quot;,
          &quot;fruitcake/laravel-cors&quot;: &quot;^2.0&quot;,
          &quot;guzzlehttp/guzzle&quot;: &quot;^7.0.1&quot;,
          &quot;jenssegers/agent&quot;: &quot;^2.6&quot;,
          &quot;laravel/fortify&quot;: &quot;^1.7&quot;,
          &quot;laravel/framework&quot;: &quot;^8.12&quot;,
          &quot;laravel/sanctum&quot;: &quot;^2.8&quot;,
          &quot;laravel/socialite&quot;: &quot;^5.2&quot;,
          &quot;laravel/tinker&quot;: &quot;^2.5&quot;,
          &quot;laravelcollective/html&quot;: &quot;^6.2&quot;,
          &quot;league/flysystem-aws-s3-v3&quot;: &quot;^1.0&quot;,
          &quot;league/geotools&quot;: &quot;@stable&quot;,
          &quot;maatwebsite/excel&quot;: &quot;^3.1&quot;,
          &quot;mailchimp/mailchimp&quot;: &quot;^2.0&quot;,
          &quot;menarasolutions/geographer&quot;: &quot;^0.3.10&quot;,
          &quot;mews/purifier&quot;: &quot;^3.3&quot;,
          &quot;mobiledetect/mobiledetectlib&quot;: &quot;^2.8&quot;,
          &quot;monarobase/country-list&quot;: &quot;^3.2&quot;,
          &quot;pragmarx/countries&quot;: &quot;^0.7.2&quot;,
          &quot;spatie/browsershot&quot;: &quot;^3.40&quot;,
          &quot;spatie/emoji&quot;: &quot;^2.2&quot;,
          &quot;spatie/geocoder&quot;: &quot;^3.10&quot;,
          &quot;spatie/laravel-permission&quot;: &quot;^4.0&quot;,
          &quot;stidges/laravel-country-flags&quot;: &quot;^2.0&quot;,
          &quot;stripe/stripe-php&quot;: &quot;^7.75&quot;,
          &quot;toin0u/geocoder-laravel&quot;: &quot;^4.4&quot;,
          &quot;wboyz/laravel-enum&quot;: &quot;^0.2.1&quot;,
          &quot;webpatser/laravel-uuid&quot;: &quot;^3.0&quot;
      },
      &quot;require-dev&quot;: {
          &quot;facade/ignition&quot;: &quot;^2.5&quot;,
          &quot;fakerphp/faker&quot;: &quot;^1.9.1&quot;,
          &quot;laravel-frontend-presets/tailwindcss&quot;: &quot;^4.3&quot;,
          &quot;laravel/sail&quot;: &quot;^1.0.1&quot;,
          &quot;laravel/telescope&quot;: &quot;^4.4&quot;,
          &quot;mockery/mockery&quot;: &quot;^1.4.2&quot;,
          &quot;nunomaduro/collision&quot;: &quot;^5.0&quot;,
          &quot;phpunit/phpunit&quot;: &quot;^9.3.3&quot;
      },
      &quot;config&quot;: {
          &quot;optimize-autoloader&quot;: true,
          &quot;preferred-install&quot;: &quot;dist&quot;,
          &quot;sort-packages&quot;: true
      },
      &quot;extra&quot;: {
          &quot;laravel&quot;: {
              &quot;dont-discover&quot;: [
                  &quot;laravel/telescope&quot;
              ]
          }
      },
      &quot;autoload&quot;: {
          &quot;files&quot;: [
              &quot;app/Library/helper.php&quot;
          ],
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;app/&quot;,
              &quot;Database\\Factories\\&quot;: &quot;database/factories/&quot;,
              &quot;Database\\Seeders\\&quot;: &quot;database/seeders/&quot;
          }
      },
      &quot;autoload-dev&quot;: {
          &quot;psr-4&quot;: {
              &quot;Tests\\&quot;: &quot;tests/&quot;
          }
      },
      &quot;minimum-stability&quot;: &quot;dev&quot;,
      &quot;prefer-stable&quot;: true,
      &quot;scripts&quot;: {
          &quot;post-autoload-dump&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postAutoloadDump&quot;,
              &quot;@php artisan package:discover --ansi&quot;
          ],
          &quot;post-root-package-install&quot;: [
              &quot;@php -r \&quot;file_exists('.env') || copy('.env.example', '.env');\&quot;&quot;
          ],
          &quot;post-create-project-cmd&quot;: [
              &quot;@php artisan key:generate --ansi&quot;
          ]
      }
  }
  </code></pre>
  <p>How this error can be fixed?</p>
  <p><strong>MODIFIED 1:</strong>
  I suppose
  Firstly I need to install carlosocarvalho/flysystem-cloudinary and next
  xiaomlove/laravel-filesystem-cloudinary, but I got error installing :</p>
  <pre><code>  Problem 1
      - Conclusion: don't install carlosocarvalho/flysystem-cloudinary v2.0.2
      - Conclusion: don't install laravel-frontend-presets/tailwindcss 4.3.1
      - Conclusion: don't install league/flysystem 1.1.4
      - Conclusion: don't install carlosocarvalho/flysystem-cloudinary v2.0.1
      - Conclusion: don't install league/flysystem 1.1.3
      - Installation request for laravel-frontend-presets/tailwindcss ^4.3 -&gt; satisfiable by laravel-frontend-presets/tailwindcss[4.3.0, 4.3.1].
      - Installation request for laravel/framework ^8.51.0 -&gt; satisfiable by laravel/framework[8.x-dev, v8.51.0].
      - Conclusion: don't install carlosocarvalho/flysystem-cloudinary v2.0.0
      - laravel-frontend-presets/tailwindcss 4.3.0 requires laravel/framework ^8.0 -&gt; satisfiable by laravel/framework[8.x-dev, v8.51.0].
      - laravel/framework v8.51.0 requires league/flysystem ^1.1 -&gt; satisfiable by league/flysystem[1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.x-dev].
      - laravel/framework 8.x-dev requires league/flysystem ^1.1 -&gt; satisfiable by league/flysystem[1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.x-dev].
      - Can only install one of: league/flysystem[2.x-dev, 1.1.0].
      - Can only install one of: league/flysystem[2.x-dev, 1.1.1].
      - Can only install one of: league/flysystem[2.x-dev, 1.1.2].
      - Can only install one of: league/flysystem[2.x-dev, 1.x-dev].
      - carlosocarvalho/flysystem-cloudinary 2.0.0-alpha requires league/flysystem 2.x-dev -&gt; satisfiable by league/flysystem[2.x-dev].
      - Installation request for carlosocarvalho/flysystem-cloudinary ^2.0 -&gt; satisfiable by carlosocarvalho/flysystem-cloudinary[2.0.0-alpha, v2.0.0, v2.0.1, v2.0.2].
  </code></pre>
  <p>I tried to install League\Flysystem first :</p>
  <p>But failed. Please any hints how it can be</p>
  <pre><code>composer require league/flysystem :^2.2.0
  ...
    Problem 1
      - Installation request for league/flysystem ^2.2.0 -&gt; satisfiable by league/flysystem[2.2.0, 2.x-dev].
      - Installation request for laravel-frontend-presets/tailwindcss ^4.3.1 -&gt; satisfiable by laravel-frontend-presets/tailwindcss[4.3.1].
      - laravel-frontend-presets/tailwindcss 4.3.1 requires laravel/framework ^8.0 -&gt; satisfiable by laravel/framework[8.x-dev, v8.51.0].
      - laravel/framework 8.x-dev requires league/flysystem ^1.1 -&gt; satisfiable by league/flysystem[1.x-dev].
      - laravel/framework v8.51.0 requires league/flysystem ^1.1 -&gt; satisfiable by league/flysystem[1.x-dev].
      - Conclusion: don't install league/flysystem 1.x-dev
  </code></pre>
  <p>I tried to modify composer.json to fix these errors , like :</p>
  <pre><code>{
      &quot;name&quot;: &quot;laravel/laravel&quot;,
      &quot;type&quot;: &quot;project&quot;,
      &quot;description&quot;: &quot;The Laravel Framework.&quot;,
      &quot;keywords&quot;: [
          &quot;framework&quot;,
          &quot;laravel&quot;
      ],
      &quot;license&quot;: &quot;MIT&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;^7.3|^8.0&quot;,
          &quot;arcanedev/log-viewer&quot;: &quot;^8.1&quot;,
          &quot;arcanedev/no-captcha&quot;: &quot;^12.2&quot;,
          &quot;cloudinary-labs/cloudinary-laravel&quot;: &quot;^1.0&quot;,
          &quot;cviebrock/eloquent-sluggable&quot;: &quot;^8.0&quot;,
          &quot;diglactic/laravel-breadcrumbs&quot;: &quot;^6.1&quot;,
          &quot;drewm/mailchimp-api&quot;: &quot;^2.5&quot;,
          &quot;fideloper/proxy&quot;: &quot;^4.4&quot;,
          &quot;fruitcake/laravel-cors&quot;: &quot;^2.0&quot;,
          &quot;guzzlehttp/guzzle&quot;: &quot;^7.1.1&quot;,
          &quot;jenssegers/agent&quot;: &quot;^2.6&quot;,
          &quot;laravel/fortify&quot;: &quot;^1.7&quot;,
          &quot;laravel/framework&quot;: &quot;^8.51.0&quot;,
          &quot;laravel/sanctum&quot;: &quot;^2.8&quot;,
          &quot;laravel/socialite&quot;: &quot;^5.2&quot;,
          &quot;laravel/tinker&quot;: &quot;^2.5&quot;,
          &quot;laravelcollective/html&quot;: &quot;^6.2&quot;,
          &quot;league/geotools&quot;: &quot;@stable&quot;,
          &quot;maatwebsite/excel&quot;: &quot;^3.1&quot;,
          &quot;mailchimp/mailchimp&quot;: &quot;^2.0&quot;,
          &quot;menarasolutions/geographer&quot;: &quot;^0.3.10&quot;,
          &quot;mews/purifier&quot;: &quot;^3.3&quot;,
          &quot;mobiledetect/mobiledetectlib&quot;: &quot;^2.8&quot;,
          &quot;monarobase/country-list&quot;: &quot;^3.2&quot;,
          &quot;pragmarx/countries&quot;: &quot;^0.7.2&quot;,
          &quot;spatie/browsershot&quot;: &quot;^3.40&quot;,
          &quot;spatie/emoji&quot;: &quot;^2.2&quot;,
          &quot;spatie/geocoder&quot;: &quot;^3.10&quot;,
          &quot;spatie/laravel-permission&quot;: &quot;^4.0&quot;,
          &quot;stidges/laravel-country-flags&quot;: &quot;^2.0&quot;,
          &quot;stripe/stripe-php&quot;: &quot;^7.75&quot;,
          &quot;toin0u/geocoder-laravel&quot;: &quot;^4.4&quot;,
          &quot;wboyz/laravel-enum&quot;: &quot;^0.2.1&quot;,
          &quot;webpatser/laravel-uuid&quot;: &quot;^3.0&quot;
      },
      &quot;require-dev&quot;: {
          &quot;facade/ignition&quot;: &quot;^2.5&quot;,
          &quot;fakerphp/faker&quot;: &quot;^1.9.1&quot;,
          &quot;laravel-frontend-presets/tailwindcss&quot;: &quot;^4.3.1&quot;,
          &quot;laravel/sail&quot;: &quot;^1.0.1&quot;,
          &quot;laravel/telescope&quot;: &quot;^4.4&quot;,
          &quot;mockery/mockery&quot;: &quot;^1.4.2&quot;,
          &quot;nunomaduro/collision&quot;: &quot;^5.0&quot;,
          &quot;phpunit/phpunit&quot;: &quot;^9.3.3&quot;
      },
      &quot;config&quot;: {
          &quot;optimize-autoloader&quot;: true,
          &quot;preferred-install&quot;: &quot;dist&quot;,
          &quot;sort-packages&quot;: true
      },
      &quot;extra&quot;: {
          &quot;laravel&quot;: {
              &quot;dont-discover&quot;: [
                  &quot;laravel/telescope&quot;
              ]
          }
      },
      &quot;autoload&quot;: {
          &quot;files&quot;: [
              &quot;app/Library/helper.php&quot;
          ],
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;app/&quot;,
              &quot;Database\\Factories\\&quot;: &quot;database/factories/&quot;,
              &quot;Database\\Seeders\\&quot;: &quot;database/seeders/&quot;
          }
      },
      &quot;autoload-dev&quot;: {
          &quot;psr-4&quot;: {
              &quot;Tests\\&quot;: &quot;tests/&quot;
          }
      },
      &quot;minimum-stability&quot;: &quot;dev&quot;,
      &quot;prefer-stable&quot;: true,
      &quot;scripts&quot;: {
          &quot;post-autoload-dump&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postAutoloadDump&quot;,
              &quot;@php artisan package:discover --ansi&quot;
          ],
          &quot;post-root-package-install&quot;: [
              &quot;@php -r \&quot;file_exists('.env') || copy('.env.example', '.env');\&quot;&quot;
          ],
          &quot;post-create-project-cmd&quot;: [
              &quot;@php artisan key:generate --ansi&quot;
          ]
      }
  }
  </code></pre>
  <p>Any hints how can it be fixed?</p>
  <p><strong>MODIFIED 2:</strong>
  As I failed to install laravel-filesystem-cloudinary
  I still try to use code like :</p>
  <pre><code>Storage::disk('cloudinary')-&gt;put('cl_filename.ext', Storage::disk('local')-&gt;get('local_filename.ext'));
  </code></pre>
  <p>But as I got error
  This driver does not support retrieving URLs.</p>
  <p>I try to debug source code and in file and opened file vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php:</p>
  <p>and debugging url method, like :</p>
  <pre><code>public function url($path)
  {
      \Log::info(  varDump($path, ' -1 url  $path::') );
      $adapter = $this-&gt;driver-&gt;getAdapter();
      \Log::info(  varDump($adapter, ' -1 url  $adapter::') );
  
      if ($adapter instanceof CachedAdapter) {
          $adapter = $adapter-&gt;getAdapter();
          \Log::info(  varDump($adapter, ' -2 INSIDE url  $adapter::') );
      }
  
      if (method_exists($adapter, 'getUrl')) {
          return $adapter-&gt;getUrl($path);
      } elseif (method_exists($this-&gt;driver, 'getUrl')) {
          return $this-&gt;driver-&gt;getUrl($path);
      } elseif ($adapter instanceof AwsS3Adapter) {
          return $this-&gt;getAwsUrl($adapter, $path);
      } elseif ($adapter instanceof Ftp || $adapter instanceof Sftp) {
          return $this-&gt;getFtpUrl($path);
      } elseif ($adapter instanceof LocalAdapter) {
          return $this-&gt;getLocalUrl($path);
      } else {
          throw new RuntimeException('This driver does not support retrieving URLs.');
      }
  }
  </code></pre>
  <p>I see output</p>
  <pre><code>[2021-07-28 09:18:01] local.INFO: NULL : -1 url  $path:: : NULL
  [2021-07-28 09:18:01] local.INFO:  (Object of CloudinaryLabs\CloudinaryLaravel\CloudinaryAdapter) : -1 url  $adapter:: : Array
  (
     [cloudinary] =&gt; Cloudinary\Cloudinary Object
          (
              [configuration] =&gt; Cloudinary\Configuration\Configuration Object
                  (
                      [sections:protected] =&gt; Array
                          (
                              [0] =&gt; cloud
                              [1] =&gt; api
                              [2] =&gt; url
                              [3] =&gt; tag
                              [4] =&gt; responsive_breakpoints
                              [5] =&gt; auth_token
                              [6] =&gt; logging
                          )
  
                      [includeSensitive:protected] =&gt; 1
                      [cloud] =&gt; Cloudinary\Configuration\CloudConfig Object
                          (
                              [cloudName] =&gt; NNNNNNNNNNN
                              [apiKey] =&gt; XXXXXXXXXXXXXXXXXXX
                              [apiSecret] =&gt; WWWWWWWWWWWW
                              [oauthToken] =&gt;
                              [explicitlySetKeys:protected] =&gt; Array
                                  (
                                      [cloudName] =&gt; 1
                                      [apiKey] =&gt; 1
                                      [apiSecret] =&gt; 1
                                  )
  
                          )
  
                      [api] =&gt; Cloudinary\Configuration\ApiConfig Object
                          (
                              [uploadPrefix:protected] =&gt;
                              [apiProxy] =&gt;
                              [connectionTimeout] =&gt;
                              [timeout:protected] =&gt;
                              [uploadTimeout:protected] =&gt;
                              [chunkSize:protected] =&gt;
                              [callbackUrl] =&gt;
                              [explicitlySetKeys:protected] =&gt; Array
                                  (
                                  )
  
                          )
  </code></pre>
  <p>as for Cloudinary Adapter method url not found and I can not manually edit file under “vendor/”
  it must be done in some other way?</p>
  <p>Thanks!</p>