RouteServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A map() 0 3 1
A boot() 0 3 1
A mapWebRoutes() 0 4 1
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