Completed
Push — master ( 71c1d9...f78dbb )
by ARCANEDEV
03:55
created

RoutesController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 31
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 9 1
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\Admin\System;
2
3
/**
4
 * Class     RoutesController
5
 *
6
 * @package  Arcanesoft\Foundation\Http\Controllers\System
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class RoutesController extends Controller
10
{
11
    /* ------------------------------------------------------------------------------------------------
12
     |  Constructor
13
     | ------------------------------------------------------------------------------------------------
14
     */
15
    /**
16
     * RoutesController constructor.
17
     */
18
    public function __construct()
19
    {
20
        parent::__construct();
21
22
        $this->setCurrentPage('foundation-system-routes');
23
        $this->addBreadcrumbRoute('Routes', 'admin::foundation.system.routes.index');
24
    }
25
26
    /* ------------------------------------------------------------------------------------------------
27
     |  Main Functions
28
     | ------------------------------------------------------------------------------------------------
29
     */
30
    public function index()
31
    {
32
        $this->setTitle('Routes Viewer');
33
        $this->addBreadcrumb('List of all routes');
34
35
        $routes = app('arcanedev.foundation.routes-viewer')->all();
36
37
        return $this->view('admin.system.routes.list', compact('routes'));
38
    }
39
}
40