Laravel erhalten Dateiinhalte aus dem Speicher
$contents = Storage::disk('local')->get('file.txt');
Bloody Badger
$contents = Storage::disk('local')->get('file.txt');
// First Method
use Illuminate\Support\Facades\Storage;
Storage::disk('local')->put('example.txt', 'Contents');
// Second Method
$request->file('image')->storePublicly('images/media', ['disk' => 'public']);
use Illuminate\Support\Facades\Storage;
$path = Storage::path('file.jpg');
Storage::disk('public')->putFile('folder-destination', $request->file('file-to-save'));
use Illuminate\Support\Facades\Storage;
Storage::disk('local')->put('example.txt', 'Contents');
use Illuminate\Support\Facades\Storage;
Storage::disk('local')->put('example.txt', 'Contents');