Question : how to store file in public folder laravel
Answered by : elfaz-aklilu
You can create a new storage disc in config/filesystems.php
'public_uploads' => [ 'driver' => 'local', 'root' => public_path() . '/uploads',
],
And store files like this:
if(!Storage::disk('public_uploads')->put($path, $file_content)) { return false;
}
Source : | Last Update : Sun, 19 Dec 21
Question : laravel get file in public folder
Answered by : courageous-cod-og6ws31dzg6c
Storage::get('\public\FileNameHere')
Source : | Last Update : Thu, 14 Jan 21