From 7895fb09dcf1d1c72c897efdf5f48070456da980 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 27 Dec 2024 22:57:36 +0800 Subject: [PATCH] Ensure `cache.default` will alway default to `array` https://github.com/laravel-zero/foundation/pull/105/commits/3118093a459b4425012c27942c5dd6423b26d7cc Signed-off-by: Mior Muhammad Zaki --- bin/sync | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/sync b/bin/sync index 4a36d02..6c783f3 100755 --- a/bin/sync +++ b/bin/sync @@ -51,3 +51,8 @@ transform([ Queue::createPayloadUsing(null); }'.PHP_EOL, 2), ], fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/src/Illuminate/Foundation/Testing/Concerns/InteractsWithTestCaseLifecycle.php")); + +// Configure `config/cache.php` file +transform([ + line("'default' => env('CACHE_STORE', 'database'),", 1) => line("'default' => env('CACHE_STORE', 'array'),", 1), +], fn ($changes) => $files->replaceInFile(array_keys($changes), array_values($changes), "{$workingPath}/config/cache.php"));