|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | return [ |
| 4 | + // If true, the uploaded file will be renamed to uniqid() + file extension. |
4 | 5 | 'rename_file' => true, |
5 | 6 |
|
6 | 7 | 'use_package_routes' => true, |
7 | 8 |
|
| 9 | + // For laravel 5.2, please set to ['web', 'auth'] |
8 | 10 | 'middlewares' => ['auth'], |
9 | 11 |
|
| 12 | + // Allow multi_user mode or not. |
| 13 | + // If true, laravel-filemanager create private folders for each signed-in user. |
10 | 14 | 'allow_multi_user' => true, |
11 | 15 |
|
| 16 | + // The database field to identify a user. |
| 17 | + // When set to 'id', the private folder will be named as the user id. |
| 18 | + // NOTE: make sure to use an unique field. |
12 | 19 | 'user_field' => 'id', |
13 | 20 |
|
14 | 21 | 'shared_folder_name' => 'shares', |
|
39 | 46 | 'text/plain', |
40 | 47 | ], |
41 | 48 |
|
| 49 | + // file extensions array, only for showing file information, it won't affect the upload process. |
42 | 50 | 'file_type_array' => [ |
43 | 51 | 'pdf' => 'Adobe Acrobat', |
44 | 52 | 'docx' => 'Microsoft Word', |
|
54 | 62 | 'pptx' => 'Microsoft PowerPoint', |
55 | 63 | ], |
56 | 64 |
|
| 65 | + // file extensions array, only for showing icons, it won't affect the upload process. |
57 | 66 | 'file_icon_array' => [ |
58 | 67 | 'pdf' => 'fa-file-pdf-o', |
59 | 68 | 'docx' => 'fa-file-word-o', |
|
0 commit comments