-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute-modules.php
62 lines (58 loc) · 2.04 KB
/
route-modules.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
return [
[
/*
| -------------------------------------------------------------------------
| Module path
| -------------------------------------------------------------------------
|
| The path where the route configuration files for this module are located.
|
| You can specify either a directory, in which case all .php files in that
| directory will be treated as route files, or a single file without the
| .php extension.
|
| Examples:
|
| Load all routes in directory
| path: 'routes/modules'
|
| Single route file
| path: 'routes/users.php'
*/
'path' => 'routes/modules',
/*
|--------------------------------------------------------------------------
| Module prefix
|--------------------------------------------------------------------------
|
| This sets a prefix that will be added to the module path when the module
| is created. This is used to make modules independent and supplement
| filename prefixes.
|
*/
'prefix' => null,
/*
|--------------------------------------------------------------------------
| Route file prefix
|--------------------------------------------------------------------------
|
| If set to true, the route file name will be used as a prefix for the
| routes defined in that file.
|
| For example, 'users.php' would prefix all routes with 'users.'
|
*/
'named' => true,
/*
|--------------------------------------------------------------------------
| Module middleware
|--------------------------------------------------------------------------
|
| The default middleware that will be applied to all routes registered by
| the module.
|
*/
'middleware' => ['web', 'auth']
],
];