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

PagesRoutes::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 8
nc 1
nop 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