Skip to content

Commit 41ff892

Browse files
committed
Add more comments to the config file
1 parent ef5b06a commit 41ff892

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/config/lfm.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
<?php
22

33
return [
4+
// If true, the uploaded file will be renamed to uniqid() + file extension.
45
'rename_file' => true,
56

67
'use_package_routes' => true,
78

9+
// For laravel 5.2, please set to ['web', 'auth']
810
'middlewares' => ['auth'],
911

12+
// Allow multi_user mode or not.
13+
// If true, laravel-filemanager create private folders for each signed-in user.
1014
'allow_multi_user' => true,
1115

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.
1219
'user_field' => 'id',
1320

1421
'shared_folder_name' => 'shares',
@@ -39,6 +46,7 @@
3946
'text/plain',
4047
],
4148

49+
// file extensions array, only for showing file information, it won't affect the upload process.
4250
'file_type_array' => [
4351
'pdf' => 'Adobe Acrobat',
4452
'docx' => 'Microsoft Word',
@@ -54,6 +62,7 @@
5462
'pptx' => 'Microsoft PowerPoint',
5563
],
5664

65+
// file extensions array, only for showing icons, it won't affect the upload process.
5766
'file_icon_array' => [
5867
'pdf' => 'fa-file-pdf-o',
5968
'docx' => 'fa-file-word-o',

0 commit comments

Comments
 (0)