I have a user and an admin laravel application that are two separate file/app in my desktop. I want to store and display images that was upload from one application to another and vice versa. Is there a way to do that?
CodePudding user response:
In your config/filesystems.php
create new disk inside disks
array:
'your-disk' => [
'driver' => 'local',
'root' => 'C:\\path\\to\\your\\folder',
],
// using an extra \ for escaping
using the Storage
facade to deal with your file, example, to put a new file on the download
folder inside your disk:
use Illuminate\Support\Facades\Storage;
Storage::disk('your-disk')->put('file.pdf', $file);
fore more details, read the Documentation.