Skip to content

Commit 53aeca3

Browse files
committed
add more instructions in installation document
1 parent 122de6b commit 53aeca3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/installation.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,25 @@
6969
7070
1. Edit `APP_URL` in `.env`.
7171
72+
1. Edit `routes/web.php` :
73+
74+
Create route group to wrap package routes.
75+
76+
```php
77+
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
78+
\UniSharp\LaravelFilemanager\Lfm::routes();
79+
});
80+
```
81+
82+
Make sure `auth` middleware is present to :
83+
84+
1. prevent unauthorized uploads
85+
1. work properly with multi-user mode
86+
87+
1. make sure database exists
88+
89+
1. login and visit `/laravel-filemanager/demo`
90+
7291
## Installing alpha version
7392
* Run `composer require unisharp/laravel-filemanager:dev-master` to get the latest developer version.
7493

0 commit comments

Comments
 (0)