Skip to content

Commit ef5b06a

Browse files
committed
add notes for laravel 5.2 to add the "web" middleware. fix #31 #41
1 parent c9f8c62 commit ef5b06a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ PR is welcome!
1818
* Laravel 5
1919
* requires [intervention/image](https://github.com/Intervention/image) (to make thumbs, crop and resize images).
2020

21+
## Notes
22+
23+
* For `laravel 5.2`, please set `'middlewares' => ['web', 'auth'],` in config/lfm.php
24+
* With laravel-filemanager >= 1.3.0, the new configs `valid_image_mimetypes` and `valid_file_mimetypes` restrict the MIME types of the uploading files.
25+
2126
## Installation
2227

2328
1. Install package
@@ -144,6 +149,7 @@ In `config/lfm.php` :
144149
145150
'middlewares' => ['auth'],
146151
// determine middlewares that apply to all file manager routes
152+
// NOTE: for laravel 5.2, please use ['web', 'auth']
147153
148154
'allow_multi_user' => true,
149155
// true : user can upload files to shared folder and their own folder

0 commit comments

Comments
 (0)