Skip to content

Commit 928bff9

Browse files
author
Ishak Amri
committed
-In case of use_package_routes is true, the route generated will try to get prefix value and middleware array from config file before falling back to static values.
-If the user creates a route with a custom prefix, he can set the prefix in config to be used in demo.
1 parent 81856d9 commit 928bff9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/config/lfm.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
'use_package_routes' => true,
1919

20+
//Middlewares to be applied to default routes when use_package_routes is true
21+
'middlewares' => ['web','auth'],
22+
23+
//The url prefix to this package.
24+
'url_prefix' => 'filemanager',
25+
2026
/*
2127
|--------------------------------------------------------------------------
2228
| Shared folder / Private folder

0 commit comments

Comments
 (0)