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.
This commit is contained in:
Caique Castro 2017-04-23 09:33:23 -03:00
parent 6869a880b7
commit 312a79f673
No known key found for this signature in database
GPG Key ID: 3ABCB36351D7610D
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
| |
*/ */
'default' => 'local', 'default' => env('FILESYSTEM_DRIVER', 'local'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -26,7 +26,7 @@
| |
*/ */
'cloud' => 's3', 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------