forked from spatie/laravel-route-discovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
route-discovery.php
36 lines (33 loc) · 1.36 KB
/
route-discovery.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
<?php
return [
/*
* Routes will be registered for all controllers found in
* these directories.
*/
'discover_controllers_in_directory' => [
app_path('Http/Controllers'),
],
/*
* Routes will be registered for all views found in these directories.
* The key of an item will be used as the prefix of the uri.
*/
'discover_views_in_directory' => [
// 'docs' => resource_path('views/docs'),
],
/*
* After having discovered all controllers, these classes will manipulate the routes
* before registering them to Laravel.
*
* In most cases, you shouldn't change these
*/
'pending_route_transformers' => [
Spatie\RouteDiscovery\PendingRouteTransformers\AddControllerUriToActions::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleDoNotDiscover::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleCustomRouteName::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleCustomMiddleware::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleCustomHttpMethods::class,
Spatie\RouteDiscovery\PendingRouteTransformers\FixUrisOfNestedControllers::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleCustomUri::class,
Spatie\RouteDiscovery\PendingRouteTransformers\HandleCustomFullUri::class,
],
];