2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
'default' => 'local',
|
2018-04-02 07:02:12 +08:00
|
|
|
|
|
|
|
// This is the filesystem the uploaded files should go to
|
|
|
|
'public_files' => 'public',
|
2017-06-09 02:28:26 +08:00
|
|
|
'cloud' => 's3',
|
|
|
|
'disks' => [
|
|
|
|
|
|
|
|
'local' => [
|
|
|
|
'driver' => 'local',
|
|
|
|
'root' => storage_path('app'),
|
|
|
|
],
|
|
|
|
|
|
|
|
'public' => [
|
|
|
|
'driver' => 'local',
|
2018-04-02 07:02:12 +08:00
|
|
|
'root' => public_path('uploads'),
|
|
|
|
'url' => '/uploads',
|
2017-06-09 02:28:26 +08:00
|
|
|
'visibility' => 'public',
|
|
|
|
],
|
|
|
|
|
|
|
|
's3' => [
|
|
|
|
'driver' => 's3',
|
|
|
|
'key' => 'your-key',
|
|
|
|
'secret' => 'your-secret',
|
|
|
|
'region' => 'your-region',
|
|
|
|
'bucket' => 'your-bucket',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|