updated to laravel 11

This commit is contained in:
2024-04-22 18:16:33 +10:00
parent 5fbca80a3c
commit 5b7da699bd
503 changed files with 9672 additions and 73262 deletions

View File

@@ -9,7 +9,7 @@ return [
|
| 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. Just store away!
| based disks are available to your application for file storage.
|
*/
@@ -20,9 +20,9 @@ return [
| 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 set up for each driver as an example of the required values.
| 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"
|
@@ -30,45 +30,41 @@ return [
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . "/storage/{name}",
'public' => true,
'throw' => false,
],
// 'local' => [
// 'driver' => 'local',
// 'root' => storage_path('app'),
// 'throw' => false,
// ],
'cdn' => [
'driver' => 's3',
'key' => env('AWS_PUBLIC_ACCESS_KEY_ID'),
'secret' => env('AWS_PUBLIC_SECRET_ACCESS_KEY'),
'region' => env('AWS_PUBLIC_DEFAULT_REGION'),
'bucket' => env('AWS_PUBLIC_BUCKET'),
'url' => env('AWS_PUBLIC_URL') . '/{name}',
'endpoint' => env('AWS_PUBLIC_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_PUBLIC_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'public' => true,
'options' => [
'ACL' => '',
]
],
'private' => [
'media' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'url' => env('APP_URL_API') . '/media/{id}/download',
'visibility' => 'private',
'root' => storage_path('app/media'),
// 'url' => env('APP_MEDIA_URL'),
'url' => env('APP_URL').'/media/download',
'throw' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . '/storage/{name}',
'visibility' => 'public',
// 'url' => env('APP_MEDIA_URL'),
// 'url' => env('APP_URL').'/media',
// 'visibility' => 'public',
'throw' => false,
],
// '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'),
// 'endpoint' => env('AWS_ENDPOINT'),
// 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
// 'throw' => false,
// ],
],
/*
@@ -83,7 +79,7 @@ return [
*/
'links' => [
public_path('storage') => storage_path('app/public'),
public_path('media') => storage_path('app/public'),
],
];