2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
2016-07-03 18:11:58 +02:00
|
|
|
|
2015-03-13 06:01:27 +01:00
|
|
|
use App;
|
2015-03-12 01:44:39 +01:00
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
2017-01-30 20:40:43 +01:00
|
|
|
use Illuminate\Routing\Router;
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class RouteServiceProvider.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
|
|
|
class RouteServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* This namespace is applied to the controller routes in your routes file.
|
|
|
|
*
|
|
|
|
* In addition, it is set as the URL generator's root namespace.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $namespace = 'App\Http\Controllers';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define your route model bindings, pattern filters, etc.
|
|
|
|
*
|
2017-01-30 20:40:43 +01:00
|
|
|
* @param \Illuminate\Routing\Router $router
|
|
|
|
*
|
2016-07-03 18:11:58 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(Router $router)
|
|
|
|
{
|
|
|
|
parent::boot($router);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the routes for the application.
|
|
|
|
*
|
2017-01-30 20:40:43 +01:00
|
|
|
* @param \Illuminate\Routing\Router $router
|
|
|
|
*
|
2016-07-03 18:11:58 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function map(Router $router)
|
|
|
|
{
|
|
|
|
$router->group(['namespace' => $this->namespace], function ($router) {
|
|
|
|
require app_path('Http/routes.php');
|
|
|
|
});
|
|
|
|
}
|
2015-03-12 01:44:39 +01:00
|
|
|
}
|