- Added PublicS3Disk and PrivateS3Disk classes for S3 disk management. - Updated ProductController and RecipeController to utilize PublicS3Disk for file uploads. - Modified MediaController to redirect to S3 URLs. - Enhanced migration script to support file migration to new S3 structure. - Updated filesystem and storage service configurations for public/private S3 disks.
17 lines
333 B
PHP
17 lines
333 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'default' => 's3-private',
|
|
|
|
'eligibleDisks' => [
|
|
's3-public',
|
|
's3-private',
|
|
's3',
|
|
],
|
|
|
|
'prefix' => env('STORAGE_SERVICE_PREFIX', 'media'),
|
|
|
|
'allowedExtensions' => ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'txt', 'doc', 'docx', 'csv', 'mp4', 'webm'],
|
|
];
|