Illuminate\Contracts\Filesystem\FileNotFoundException in Laravel 5.6 using Storage facade
问题 This code is returning an strange error: $file = Storage::get(Storage::disk('notas_xml')->path('') . 't.txt'); As you can see the file does exist. 回答1: You need to get the file as below code: Storage::disk('notas_xml')->has('t.txt'); Above has method may be used to determine if a given file exists on the disk: Please read documentation https://laravel.com/docs/5.1/filesystem#retrieving-files 回答2: Get the file directly from the disk instead of nesting $exists = Storage::disk('notas_xml')-