Completed
Push — master ( eee4fb...7643b1 )
by ARCANEDEV
11:35
created

PagesRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 12 1
1
<?php namespace Arcanesoft\Pages\Http\Routes\Back;
2
3
use Arcanedev\Support\Bases\RouteRegister;
4
use Illuminate\Contracts\Routing\Registrar;
5
6
/**
7
 * Class     PagesRoutes
8
 *
9
 * @package  Arcanesoft\Pages\Http\Routes\Back
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class PagesRoutes extends RouteRegister
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Main Functions
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Map routes.
20
     *
21
     * @param  \Illuminate\Contracts\Routing\Registrar  $router
22
     */
23
    public function map(Registrar $router)
24
    {
25
        $this->group([
26
            'as'     => 'pages.',
27
            'prefix' => 'pages',
28
        ], function () {
29
            $this->get('/', [
30
                'as'   => 'index', // pages::foundation.pages.index
31
                'uses' => 'PagesController@index',
32
            ]);
33
        });
34
    }
35
}
36