Last active
July 24, 2018 09:44
-
-
Save victorighalo/e77fbb8a7fba571f34f371f4c398e70e to your computer and use it in GitHub Desktop.
Laravel Route Service Provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Register the cusom route here --> | |
public function map() | |
{ | |
… | |
$this->mapCustomRoutes(); | |
} | |
<!-- Replace custom with whatever name you choose --> | |
protected function mapCustomRoutes() | |
{ | |
Route::Route::prefix('custom') | |
->middleware('web') | |
->namespace($this->namespace) | |
->group(base_path('routes/customroute.php')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment