2014-08-20 00:10:30 -05:00
|
|
|
<?php namespace App\Providers;
|
2014-08-11 10:13:20 -05:00
|
|
|
|
2014-09-24 09:49:21 -05:00
|
|
|
use Illuminate\Routing\Router;
|
2014-09-30 21:13:58 -05:00
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
2014-08-11 10:13:20 -05:00
|
|
|
|
|
|
|
|
class RouteServiceProvider extends ServiceProvider {
|
|
|
|
|
|
2014-10-20 11:14:41 -05:00
|
|
|
/**
|
2014-11-19 19:45:46 -06:00
|
|
|
* This namespace is applied to the controller routes in your routes file.
|
2014-10-20 11:14:41 -05:00
|
|
|
*
|
2014-11-19 19:59:36 -06:00
|
|
|
* In addition, it is set as the URL generator's root namespace.
|
2014-11-19 19:45:46 -06:00
|
|
|
*
|
|
|
|
|
* @var string
|
2014-10-20 11:14:41 -05:00
|
|
|
*/
|
2014-11-19 19:45:46 -06:00
|
|
|
protected $namespace = 'App\Http\Controllers';
|
2014-10-20 11:14:41 -05:00
|
|
|
|
2014-08-11 10:13:20 -05:00
|
|
|
/**
|
2014-11-19 19:59:36 -06:00
|
|
|
* Define your route model bindings, pattern filters, etc.
|
2014-08-11 10:13:20 -05:00
|
|
|
*
|
2014-10-15 13:35:10 +01:00
|
|
|
* @param \Illuminate\Routing\Router $router
|
2014-08-11 10:13:20 -05:00
|
|
|
* @return void
|
|
|
|
|
*/
|
2014-11-19 19:45:46 -06:00
|
|
|
public function boot(Router $router)
|
2014-08-11 10:13:20 -05:00
|
|
|
{
|
2014-11-19 19:45:46 -06:00
|
|
|
parent::boot($router);
|
|
|
|
|
|
|
|
|
|
//
|
2014-08-11 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the routes for the application.
|
|
|
|
|
*
|
2015-01-20 16:08:56 -06:00
|
|
|
* @param \Illuminate\Routing\Router $router
|
2014-08-11 10:13:20 -05:00
|
|
|
* @return void
|
|
|
|
|
*/
|
2015-01-20 16:08:56 -06:00
|
|
|
public function map(Router $router)
|
2014-08-11 10:13:20 -05:00
|
|
|
{
|
2015-01-21 10:18:18 +01:00
|
|
|
$router->group(['namespace' => $this->namespace], function($router)
|
2015-01-20 16:08:56 -06:00
|
|
|
{
|
|
|
|
|
require app_path('Http/routes.php');
|
|
|
|
|
});
|
2014-08-11 10:13:20 -05:00
|
|
|
}
|
|
|
|
|
|
2014-09-15 09:12:48 -03:00
|
|
|
}
|