Answers for "laravel does ot get public folder"

PHP
2

how to store file in public folder laravel

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;
}
Posted by: Guest on December-12-2021
1

laravel get file in public folder

Storage::get('\public\FileNameHere')
Posted by: Guest on January-07-2021

Code answers related to "laravel does ot get public folder"

Browse Popular Code Answers by Language