How To Store File In Public Folder Laravel

[Solved] How To Store File In Public Folder Laravel | Php - Code Explorer | yomemimo.com
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

Answers related to how to store file in public folder laravel

Code Explorer Popular Question For Php