Laravel provides a neat configuration class which is perfectly suited for that kind of tasks.
You can just drop a configuration file into the
So in your case you would create a
s3.php file in the config directory. Then just return an array with your configuration:
<?php return [ 'bucket' => [ 'Bucket' => 'GLOBAL-BUCKET-NAME' ] ];
Then you can simply use:
For more configuration madness check the Docs
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us