Skip to content

Commit ce55748

Browse files
committed
remove redundant code in config file
1 parent 8958554 commit ce55748

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

docs/config.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
| should\_change\_file\_mode | boolean | If true, it will attempt to chmod the file after upload |
6363
| valid\_file\_mimetypes | array | Array of mime types. Available since v1.3.0 . |
6464

65+
##### Appendix:
66+
67+
* [full mime types list](http://docs.w3cub.com/http/basics_of_http/mime_types/complete_list_of_mime_types/)
68+
* [Laravel File Storage](https://laravel.com/docs/master/filesystem)
69+
6570

6671
## Thumbnail dimensions:
6772

src/config/lfm.php

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,8 @@
1717

1818
'use_package_routes' => true,
1919

20-
'middlewares' => ['web', 'auth'],
21-
22-
// The url to this package. Change it if necessary.
23-
'url_prefix' => 'laravel-filemanager',
24-
25-
// Use relative paths (without domain)
26-
'relative_paths' => false,
27-
28-
// behavior on files with identical name
29-
// setting it to true cause old file replace with new one
30-
// setting it to false show `error-file-exist` error and stop upload
31-
'over_write_on_duplicate' => false,
32-
33-
// behavior on files with identical name
34-
// setting it to true cause old file replace with new one
35-
// setting it to false show `error-file-exist` error and stop upload
36-
'over_write_on_duplicate' => false,
20+
// // Use relative paths (without domain)
21+
// 'relative_paths' => false,
3722

3823
/*
3924
|--------------------------------------------------------------------------
@@ -118,6 +103,11 @@
118103
// If true, it will attempt to chmod the file after upload
119104
'should_change_file_mode' => true,
120105

106+
// behavior on files with identical name
107+
// setting it to true cause old file replace with new one
108+
// setting it to false show `error-file-exist` error and stop upload
109+
'over_write_on_duplicate' => false,
110+
121111
/*
122112
|--------------------------------------------------------------------------
123113
| Thumbnail
@@ -133,17 +123,20 @@
133123
'image/pjpeg',
134124
'image/png',
135125
],
126+
127+
'thumb_img_width' => 200,
128+
129+
'thumb_img_height' => 200,
130+
136131
/*
137132
|--------------------------------------------------------------------------
138133
| jQuery UI options
139134
|--------------------------------------------------------------------------
140135
*/
141-
'resize_aspectRatio' => false,
142-
'resize_containment' => true,
143136

144-
'thumb_img_width' => 200,
137+
'resize_aspectRatio' => false,
145138

146-
'thumb_img_height' => 200,
139+
'resize_containment' => true,
147140

148141
/*
149142
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)