Laravel File not found at path but it does exist
As others pointed out Storage::get
indeed uses the path relative to the filesystem disk configuration, by default the local
driver is used (config/filesystems.php
):
'local' => [ 'driver' => 'local', 'root' => storage_path('app'),],
So if you are using the local
driver and your file resides at app/public/yourfile.ext
for example then the call to Storage
should be:
Storage::get('public/yourfile.ext');