Answer the question
In order to leave comments, you need to log in
How to work with external files using Laravel 5.6?
Illuminate\Support\Facades\File::get(...)
Illuminate\Support\Facades\Storage::put(...)
Answer the question
In order to leave comments, you need to log in
1. Add the desired directory to the config
// config/filesystems.php
'disks' => [
'temp' =>[
'driver'=>'local',
'root'=>sys_get_temp_dir()
],
dd(\Illuminate\Support\Facades\Storage::disk('temp')->listContents());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question