Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Last active August 29, 2015 14:15
Show Gist options
  • Save coreymcmahon/96df8e10e165fe76a347 to your computer and use it in GitHub Desktop.
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/
<?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