Answers for "upload file from local to s3 laravel"

PHP
0

laravel 7 upload file s3

return Storage::disk('s3')->response('images/' . $image->filename);
Posted by: Guest on August-04-2020
0

laravel move file from local to s3

se IlluminateHttpFile;
use IlluminateSupportFacadesStorage;

// Automatically generate a unique ID for file name...
Storage::putFile('photos', new File('/path/to/photo'));

// Manually specify a file name...
Storage::putFileAs('photos', new File('/path/to/photo'), 'photo.jpg');
Posted by: Guest on November-29-2020
0

laravel 7 upload file s3

$image = Image::create([
    'filename' => basename($path),
    'url' => Storage::disk('s3')->url($path)
]);
Posted by: Guest on August-04-2020

Browse Popular Code Answers by Language