From 312a79f673f71f18d67b3cff37a0791611b44f75 Mon Sep 17 00:00:00 2001 From: Caique Castro Date: Sun, 23 Apr 2017 09:33:23 -0300 Subject: [PATCH] Allow filesystem to be changed on config Allow to change the filesystem storage on the fly. For example, you can swap the storage disk with a fake one with Storage::fake for tests. --- config/filesystems.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/filesystems.php b/config/filesystems.php index f59cf9e9..4544f60c 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -13,7 +13,7 @@ | */ - 'default' => 'local', + 'default' => env('FILESYSTEM_DRIVER', 'local'), /* |-------------------------------------------------------------------------- @@ -26,7 +26,7 @@ | */ - 'cloud' => 's3', + 'cloud' => env('FILESYSTEM_CLOUD', 's3'), /* |--------------------------------------------------------------------------