lundi 15 avril 2019

how to set Storage::disk('s3') config NOT in env but instead in a file?

This might sound a bit weird. I now laravel has a really good build in Storage for s3 where we can enter or s3 settings inside of filesystems.php but is there a way NOT using the filesystems.php to setup the config?

For example, instead of putting the aws keys inside the filesystems.php instead I have another file within root or any other places. I can open it up and get the keys properly BUT how can I then setup the config right before I call Storage::disk('s3')->put();?

Please let me know if my question might be a bit hard to understand, it might be a bit hard to know why I needed to do it this way but due to some circumstances, not using the filesystems.php

Thanks in advance for any help / suggestions.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire