Completed
Push — master ( 1d5273...930607 )
by ARCANEDEV
03:40
created

RoutesController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\System;
2
3
use Arcanesoft\Foundation\Http\Controllers\Controller;
4
5
/**
6
 * Class     RoutesController
7
 *
8
 * @package  Arcanesoft\Foundation\Http\Controllers\System
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class RoutesController extends Controller
12
{
13
    public function __construct()
14
    {
15
        parent::__construct();
16
17
        $this->setCurrentPage('foundation-system-routes');
18
        $this->addBreadcrumbRoute('System', 'foundation::system.routes.index');
19
    }
20
21
    public function index()
22
    {
23
        $this->setTitle('Routes Viewer');
24
        $this->addBreadcrumb('Routes');
25
26
        $routes = app('arcanedev.foundation.routes-viewer')->all();
27
28
        return $this->view('system.routes.list', compact('routes'));
29
    }
30
}
31