Skip to content

Commit cb83469

Browse files
antonioribeiroifox
authored andcommitted
Allow media and file library disk configuration on .env
1 parent 3297066 commit cb83469

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/file_library.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
| - 'A17\Twill\Services\FileLibrary\Disk'
1919
|
2020
*/
21-
'disk' => 'twill_file_library',
21+
'disk' => env('FILE_LIBRARY_DISK', 'twill_file_library'),
2222
'endpoint_type' => env('FILE_LIBRARY_ENDPOINT_TYPE', 'local'),
2323
'cascade_delete' => env('FILE_LIBRARY_CASCADE_DELETE', false),
2424
'local_path' => env('FILE_LIBRARY_LOCAL_PATH', 'uploads'),

config/media_library.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
| - 'A17\Twill\Services\MediaLibrary\Local'
2121
|
2222
*/
23-
'disk' => 'twill_media_library',
23+
'disk' => env('MEDIA_LIBRARY_DISK', 'twill_media_library'),
2424
'endpoint_type' => env('MEDIA_LIBRARY_ENDPOINT_TYPE', 'local'),
2525
'cascade_delete' => env('MEDIA_LIBRARY_CASCADE_DELETE', false),
2626
'local_path' => env('MEDIA_LIBRARY_LOCAL_PATH', 'uploads'),

0 commit comments

Comments
 (0)