Replies: 1 comment
-
Mmh @tennox I think you misunderstood the docs about that topic. The docs don't say all your route files will be loaded by the framework. It means, once you create a new project, all the existing files in there will be loaded by the framework. You are right about public function map()
{
// Framework routes
$this->mapFooRoutes();
}
protected function mapFooRoutes()
{
Route::group(base_path('routes/foo.php'));
} I've never thought it could cause ambiguity but maybe because I'm an old user of Laravel. You could try submitting a PR to the docs with a better sentence that explains it clearly. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I read in the docs that:
But just creating a new file
routes/foo.php
wasn't enough - it was never loaded.I figured I needed to add it to RouteServiceProvider (by creating & calling a function that refers to the file via
->group(base_path('routes/web.php'))
).Is it a mistake on my side or a documentation issue? (or both)
Beta Was this translation helpful? Give feedback.
All reactions