jeudi 27 septembre 2018

Laravel 5 how to add prefix to S3 file storage config?

In the config/filesytems.php, the default settings is like this

's3' => [
    'driver' => 's3',
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'region' => env('AWS_DEFAULT_REGION'),
    'bucket' => env('AWS_BUCKET'),
    'url' => env('AWS_URL'),
],

Now, in development, there's only 1 bucket shared by all developers.

Is it possible to add a prefix (as a subfolder) to the config file?

For example

's3' => [
    ...
    'prefix' => 'jslim/',
],

How can I achieve this?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2OdcC8i
via IFTTT

Aucun commentaire:

Enregistrer un commentaire