2020-10-30 17:26:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-06-14 21:32:07 +02:00
|
|
|
declare(strict_types=1);
|
2020-10-30 17:26:00 +01:00
|
|
|
|
2026-06-14 21:32:07 +02:00
|
|
|
return [
|
2020-10-30 17:26:00 +01:00
|
|
|
|
|
|
|
|
/*
|
2026-06-14 21:32:07 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Default Filesystem Disk
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here you may specify the default filesystem disk that should be used
|
|
|
|
|
| by the framework. The "local" disk, as well as a variety of cloud
|
|
|
|
|
| based disks are available to your application for file storage.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2026-11-17 12:32:18 +01:00
|
|
|
'default' => env('FILESYSTEM_DISK', 'local') ?: 'local',
|
2020-10-30 17:26:00 +01:00
|
|
|
|
|
|
|
|
/*
|
2026-06-14 21:32:07 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Filesystem Disks
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Below you may configure as many filesystem disks as necessary, and you
|
|
|
|
|
| may even configure multiple disks for the same driver. Examples for
|
|
|
|
|
| most supported storage drivers are configured here for reference.
|
|
|
|
|
|
|
|
|
|
|
| Supported drivers: "local", "ftp", "sftp", "s3"
|
|
|
|
|
|
|
|
|
|
|
*/
|
2020-10-30 17:26:00 +01:00
|
|
|
|
|
|
|
|
'disks' => [
|
|
|
|
|
|
2026-11-12 10:07:33 +01:00
|
|
|
'local' => [
|
|
|
|
|
'driver' => 'local',
|
|
|
|
|
'root' => storage_path('app/private'),
|
2026-11-17 12:32:18 +01:00
|
|
|
'serve' => false,
|
2026-11-12 10:07:33 +01:00
|
|
|
'throw' => false,
|
|
|
|
|
'report' => false,
|
|
|
|
|
],
|
|
|
|
|
|
2020-10-30 17:26:00 +01:00
|
|
|
's3' => [
|
2026-06-14 21:32:07 +02:00
|
|
|
'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'),
|
|
|
|
|
'endpoint' => env('AWS_ENDPOINT'),
|
|
|
|
|
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
|
|
|
|
|
'throw' => false,
|
|
|
|
|
'report' => false,
|
2020-10-30 17:26:00 +01:00
|
|
|
],
|
|
|
|
|
|
2026-11-12 10:46:37 +01:00
|
|
|
's3-public' => [
|
|
|
|
|
'driver' => 'scoped',
|
|
|
|
|
'disk' => 's3',
|
|
|
|
|
'prefix' => 'public',
|
|
|
|
|
'visibility' => 'public',
|
|
|
|
|
'throw' => false,
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
's3-private' => [
|
|
|
|
|
'driver' => 'scoped',
|
|
|
|
|
'disk' => 's3',
|
|
|
|
|
'prefix' => 'private',
|
|
|
|
|
'visibility' => 'private',
|
|
|
|
|
'throw' => false,
|
|
|
|
|
],
|
|
|
|
|
|
2020-10-30 17:26:00 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
];
|