DWQA QuestionsCategory: Laravelhow configure s3 setting in laravel in any function ?
kundan roy asked 5 years ago

solution:

return Config::set(‘filesystems.disks.s3’, array(
‘driver’ => ‘s3’,
‘key’ => $this->site[‘s3key’],
‘secret’ => $this->site[‘s3secret’],
‘region’ => $this->site[‘s3region’],
‘bucket’ => $s3Bucket
));