You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class YOURPACKAGEServiceProvider extends PackageServiceProvider implements DefinesRouteRegistrar
122
+
```
123
+
124
+
Add your routes source path:
125
+
```php
126
+
/**
127
+
* defines routes by using the router
128
+
*
129
+
* @param \Illuminate\Routing\Router $router
130
+
*
131
+
* @return void
132
+
*/
133
+
public function registerRoutesWithRouter(Router $router)
134
+
{
135
+
(new RouteRegistrar($router))->all();
136
+
}
137
+
```
138
+
139
+
[RouteRegistrar](https://github.com/laravel/passport/blob/1.0/src/RouteRegistrar.php) can be seen at [laravel/passport](https://github.com/laravel/passport) project for example.
0 commit comments