-
Notifications
You must be signed in to change notification settings - Fork 585
/
Copy pathmedia_library.php
49 lines (48 loc) · 2 KB
/
media_library.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
return [
/*
|--------------------------------------------------------------------------
| Twill Media Library configuration
|--------------------------------------------------------------------------
|
| This allows you to provide the package with your configuration
| for the media library disk, endpoint type and others options depending
| on your endpoint type.
|
| Supported endpoint types: 'local' and 's3'.
| Set cascade_delete to true to delete files on the storage too when
| deleting from the media library.
| If using the 'local' endpoint type, define a 'local_path' to store files.
| Supported image services:
| - 'A17\Twill\Services\MediaLibrary\Imgix'
| - 'A17\Twill\Services\MediaLibrary\TwicPics'
| - 'A17\Twill\Services\MediaLibrary\Local'
|
*/
'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'),
'image_service' => env('MEDIA_LIBRARY_IMAGE_SERVICE', 'A17\Twill\Services\MediaLibrary\Glide'),
'acl' => env('MEDIA_LIBRARY_ACL', 'private'),
'filesize_limit' => env('MEDIA_LIBRARY_FILESIZE_LIMIT', 50),
'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg'],
'init_alt_text_from_filename' => true,
'prefix_uuid_with_local_path' => config('twill.file_library.prefix_uuid_with_local_path', false),
'translated_form_fields' => false,
'show_file_name' => false,
/*
|--------------------------------------------------------------------------
| Wysiwyg options for the caption field.
|--------------------------------------------------------------------------
*/
'media_caption_use_wysiwyg' => false,
'media_caption_wysiwyg_options' => [
'modules' => [
'toolbar' => [
'bold',
'italic',
],
],
],
];