|
75 | 75 |
|
76 | 76 | ## Setting config |
77 | 77 |
|
78 | | - In `config/lfm.php` : |
| 78 | +In `config/lfm.php` : |
79 | 79 |
|
80 | | - ```php |
81 | | - 'rename_file' => true, |
82 | | - // true : files will be renamed as uniqid |
83 | | - // false : files will remain original names |
| 80 | +```php |
| 81 | + 'rename_file' => true, |
| 82 | + // true : files will be renamed as uniqid |
| 83 | + // false : files will remain original names |
84 | 84 |
|
85 | | - 'use_package_routes' => true, |
86 | | - // set this to false to customize route for file manager |
| 85 | + 'use_package_routes' => true, |
| 86 | + // set this to false to customize route for file manager |
87 | 87 |
|
88 | | - 'middlewares' => ['auth'], |
89 | | - // determine middlewares that apply to all file manager routes |
| 88 | + 'middlewares' => ['auth'], |
| 89 | + // determine middlewares that apply to all file manager routes |
90 | 90 |
|
91 | | - 'allow_multi_user' => true, |
92 | | - // true : user can upload files to shared folder and their own folder |
93 | | - // false : all files are put together in shared folder |
| 91 | + 'allow_multi_user' => true, |
| 92 | + // true : user can upload files to shared folder and their own folder |
| 93 | + // false : all files are put together in shared folder |
94 | 94 |
|
95 | | - 'user_field' => 'name', |
96 | | - // determine which column of users table will be used as user's folder name |
| 95 | + 'user_field' => 'name', |
| 96 | + // determine which column of users table will be used as user's folder name |
97 | 97 |
|
98 | | - 'shared_folder_name' => 'shares', |
99 | | - // the name of shared folder |
| 98 | + 'shared_folder_name' => 'shares', |
| 99 | + // the name of shared folder |
100 | 100 |
|
101 | | - 'thumb_folder_name' => 'thumbs', |
102 | | - // the name of thumb folder |
| 101 | + 'thumb_folder_name' => 'thumbs', |
| 102 | + // the name of thumb folder |
103 | 103 |
|
104 | | - 'images_dir' => 'public/photos/', |
105 | | - 'images_url' => '/photos/', |
106 | | - // path and url of images |
| 104 | + 'images_dir' => 'public/photos/', |
| 105 | + 'images_url' => '/photos/', |
| 106 | + // path and url of images |
107 | 107 |
|
108 | | - 'files_dir' => 'public/files/', |
109 | | - 'files_url' => '/files/', |
110 | | - // path and url of files |
111 | | - ``` |
| 108 | + 'files_dir' => 'public/files/', |
| 109 | + 'files_url' => '/files/', |
| 110 | + // path and url of files |
| 111 | +``` |
112 | 112 |
|
113 | 113 | ## Customization |
114 | 114 |
|
|
0 commit comments