Answers for "change public folder location laravel 8"

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
0

public_path laravel

echo base_path() . "n";
echo app_path() . "n";
echo public_path() . "n";
echo storage_path() . "n";
Posted by: Guest on October-17-2021

Code answers related to "change public folder location laravel 8"

Browse Popular Code Answers by Language