Skip to content

Commit

Permalink
Update normalization methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Jan 23, 2025
1 parent e057441 commit 20c4e08
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/MigrateAssetContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,22 @@ protected function normalizeLocalConfig($config)
],
EOT;

// Up through Larvavel 11.39
$variants[] = <<<'EOT'
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'throw' => false,
],
EOT;

// Current version
$current = <<<'EOT'
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'throw' => false,
'report' => false,
],
EOT;

Expand Down Expand Up @@ -821,6 +831,17 @@ protected function normalizePublicConfig($config)
],
EOT;

// Up through Larvavel 11.39
$variants[] = <<<'EOT'
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
EOT;

// Current version
$current = <<<'EOT'
'public' => [
Expand All @@ -829,6 +850,7 @@ protected function normalizePublicConfig($config)
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
EOT;

Expand Down Expand Up @@ -873,6 +895,21 @@ protected function normalizeS3Config($config)
],
EOT;

// Up through Larvavel 11.39
$variants[] = <<<'EOT'
'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,
],
EOT;

// Current version
$current = <<<'EOT'
's3' => [
Expand All @@ -885,6 +922,7 @@ protected function normalizeS3Config($config)
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'report' => false,
],
EOT;

Expand Down

0 comments on commit 20c4e08

Please sign in to comment.