2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
|
2018-09-29 21:33:52 -07:00
|
|
|
$config = [
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Filesystem Disk
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may specify the default filesystem disk that should be used
|
2018-09-29 21:33:52 -07:00
|
|
|
| by the framework. The "local" disk, as well as a variety of cloud
|
|
|
|
| based disks are available to your application. Just store away!
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'default' => env('FILESYSTEM_DISK', 'local'),
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Cloud Filesystem Disk
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Many applications store files both locally and in the cloud. For this
|
|
|
|
| reason, you may specify a default "cloud" driver here. This driver
|
|
|
|
| will be bound as the Cloud disk implementation in the container.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-09-29 21:33:52 -07:00
|
|
|
'cloud' => env('FILESYSTEM_CLOUD', 's3'),
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Filesystem Disks
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may configure as many filesystem "disks" as you wish, and you
|
|
|
|
| may even configure multiple disks of the same driver. Defaults have
|
|
|
|
| been setup for each driver as an example of the required options.
|
|
|
|
|
|
2018-09-29 21:33:52 -07:00
|
|
|
| Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
|
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
'disks' => [
|
|
|
|
|
|
|
|
'local' => [
|
|
|
|
'driver' => 'local',
|
2018-09-29 21:33:52 -07:00
|
|
|
'root' => storage_path('app'),
|
2016-03-25 01:18:05 -07:00
|
|
|
],
|
|
|
|
|
2018-09-29 21:33:52 -07:00
|
|
|
// This applies the LOCAL public only, not S3/FTP/etc
|
|
|
|
'public' => [
|
|
|
|
'driver' => 'local',
|
|
|
|
'root' => storage_path('app/public'),
|
|
|
|
'url' => env('APP_URL').'/storage',
|
|
|
|
'visibility' => 'public',
|
2018-07-25 07:27:31 -07:00
|
|
|
],
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
's3' => [
|
|
|
|
'driver' => 's3',
|
2018-09-29 21:33:52 -07:00
|
|
|
'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'),
|
|
|
|
'root' => env('AWS_BUCKET_ROOT'),
|
2016-03-25 01:18:05 -07:00
|
|
|
],
|
|
|
|
|
2018-09-29 21:33:52 -07:00
|
|
|
'rackspace' => [
|
|
|
|
'driver' => 'rackspace',
|
|
|
|
'username' => env('RACKSPACE_USERNAME'),
|
|
|
|
'key' => env('RACKSPACE_KEY'),
|
|
|
|
'container' => env('RACKSPACE_CONTAINER'),
|
|
|
|
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
|
|
|
|
'region' => env('RACKSPACE_REGION'),
|
|
|
|
'url_type' => env('RACKSPACE_URL_TYPE'),
|
|
|
|
],
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|
2018-09-29 21:33:52 -07:00
|
|
|
|
|
|
|
// When you're dealing with local file storage, the paths will be different than S3
|
2018-12-17 14:04:56 -08:00
|
|
|
if (env('FILESYSTEM_DISK','local')!='local')
|
2018-09-29 21:33:52 -07:00
|
|
|
{
|
|
|
|
$config['disks']['public'] = $config['disks'][env('FILESYSTEM_DISK')];
|
|
|
|
$config['disks']['public']['visibility'] = 'public';
|
|
|
|
}
|
|
|
|
|
|
|
|
return $config;
|