Skip to content

Commit 13048d8

Browse files
committed
modify documents
1 parent df96a58 commit 13048d8

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

docs/customization.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## Routes
2-
1. Copy the routes in `/vendor/unisharp/laravel-filemanager/src/routes.php`
2+
1. Edit `routes/web.php` :
3+
4+
Create route group to wrap package routes.
5+
6+
Make sure `auth` middleware is present to :
7+
8+
1. prevent unauthorized uploads
9+
1. properly work with multi-user mode
10+
11+
```php
12+
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
13+
\UniSharp\LaravelFilemanager\Lfm::routes();
14+
});
15+
```
316

417
1. Make sure urls below is correspond to your route (remember to include type parameter `?type=Images` or `?type=Files`) :
518
* CKEditor
@@ -8,7 +21,7 @@
821
filebrowserImageBrowseUrl: '/your-custom-route?type=Images',
922
filebrowserBrowseUrl: '/your-custom-route?type=Files'
1023
});
11-
```
24+
```
1225
* TinyMCE
1326
```javascript
1427
...

docs/installation.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
composer require unisharp/laravel-filemanager:~1.8
1414
```
1515

16-
1. Edit `config/app.php` :
16+
1. (optional) Edit `config/app.php` :
1717

1818
\* *For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.*
1919

@@ -33,21 +33,6 @@
3333
Code above is for Laravel 5.1.
3434
In Laravel 5.0 should leave only quoted class names.
3535

36-
1. (Alpha version only) Edit `routes/web.php` :
37-
38-
Create route group to wrap package routes.
39-
40-
Make sure `auth` middleware is present to :
41-
42-
1. prevent unauthorized uploads
43-
1. properly work with multi-user mode
44-
45-
```php
46-
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
47-
\UniSharp\LaravelFilemanager\Lfm::routes();
48-
});
49-
```
50-
5136
1. Publish the package's config and assets :
5237
5338
```bash

0 commit comments

Comments
 (0)