Skip to content

Commit

Permalink
Allow media and file library disk configuration on .env
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro authored and ifox committed Oct 17, 2024
1 parent 3297066 commit cb83469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/file_library.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| - 'A17\Twill\Services\FileLibrary\Disk'
|
*/
'disk' => 'twill_file_library',
'disk' => env('FILE_LIBRARY_DISK', 'twill_file_library'),
'endpoint_type' => env('FILE_LIBRARY_ENDPOINT_TYPE', 'local'),
'cascade_delete' => env('FILE_LIBRARY_CASCADE_DELETE', false),
'local_path' => env('FILE_LIBRARY_LOCAL_PATH', 'uploads'),
Expand Down
2 changes: 1 addition & 1 deletion config/media_library.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
| - 'A17\Twill\Services\MediaLibrary\Local'
|
*/
'disk' => 'twill_media_library',
'disk' => env('MEDIA_LIBRARY_DISK', 'twill_media_library'),
'endpoint_type' => env('MEDIA_LIBRARY_ENDPOINT_TYPE', 'local'),
'cascade_delete' => env('MEDIA_LIBRARY_CASCADE_DELETE', false),
'local_path' => env('MEDIA_LIBRARY_LOCAL_PATH', 'uploads'),
Expand Down

0 comments on commit cb83469

Please sign in to comment.