We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6efe4a9 commit ec3c4ccCopy full SHA for ec3c4cc
README.md
@@ -92,6 +92,28 @@ Add your view source paths:
92
When publishing, the view tag will be `view`.
93
94
95
+### Package providing routes via file
96
+
97
+Simply implement our `DefinesRoutes` interface.
98
99
+```php
100
+class YOURPACKAGEServiceProvider extends PackageServiceProvider implements DefinesRoutes
101
+```
102
103
+Add your routes source path:
104
105
+ /**
106
+ * returns routes.php file (absolute path)
107
+ *
108
+ * @return string
109
+ */
110
+ public function routesFile()
111
+ {
112
+ return __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'routes' . DIRECTORY_SEPARATOR . 'web.php';
113
+ }
114
115
116
117
## License
118
119
Package Manager is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
0 commit comments