Completed
Push — develop ( da2d79...3a854e )
by Greg
07:32
created

RouteServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Providers;
4
5
use Illuminate\Routing\Router;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
class RouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * This namespace is applied to your controller routes.
12
     *
13
     * In addition, it is set as the URL generator's root namespace.
14
     *
15
     * @var string
16
     */
17
    protected $namespace = 'App\Http\Controllers';
18
19
    /**
20
     * Define the routes for the application.
21
     *
22
     * @param  \Illuminate\Routing\Router  $router
23
     * @return void
24
     */
25
    public function map(Router $router)
26
    {
27
        $this->mapWebRoutes($router);
28
29
        //
30
    }
31
32
    /**
33
     * Define the "web" routes for the application.
34
     *
35
     * These routes all receive session state, CSRF protection, etc.
36
     *
37
     * @param  \Illuminate\Routing\Router  $router
38
     * @return void
39
     */
40
    protected function mapWebRoutes(Router $router)
41
    {
42
        $router->group([
43
            'namespace' => $this->namespace, 'middleware' => 'web',
44
        ], function ($router) {
45
            require app_path('Http/routes.php');
46
        });
47
    }
48
}
49