Jak przechowywać plik w folderze publicznym Laravela
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;
}
Amused Alligator