Last active
August 29, 2015 14:15
-
-
Save coreymcmahon/96df8e10e165fe76a347 to your computer and use it in GitHub Desktop.
Defining routes file(s) in the Route Service Provider - http://slashnode.com/definitive-laravel-4-to-laravel-5-migration-guide/
This file contains hidden or 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
<?php namespace App\Providers; | |
use Illuminate\Routing\Router; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** ... etc */ | |
public function map(Router $router) | |
{ | |
$router->group(['namespace' => $this->namespace], function($router) | |
{ | |
require app_path('Http/routes.php'); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment