RouteServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace HoomanMirghasemi\Sms\Providers;
4
5
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
6
use Illuminate\Support\Facades\Route;
7
8
class RouteServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Called before routes are registered.
12
     *
13
     * Register any model bindings or pattern based filters.
14
     *
15
     * @return void
16
     */
17
    public function boot()
18
    {
19
        parent::boot();
20
    }
21
22
    /**
23
     * Define the routes for the application.
24
     *
25
     * @return void
26
     */
27
    public function map()
28
    {
29
        $this->mapWebRoutes();
30
    }
31
32
    /**
33
     * Define the "api" routes for the application.
34
     *
35
     * These routes are typically stateless.
36
     *
37
     * @return void
38
     */
39
    protected function mapWebRoutes()
40
    {
41
        Route::middleware(['web'])
42
            ->group(__DIR__.'/../../routes/web.php');
43
    }
44
}
45