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

DashboardController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A index() 0 10 1
1
<?php namespace Arcanesoft\Pages\Http\Controllers\Back;
2
3
use Arcanesoft\Pages\Bases\FoundationController as Controller;
4
5
/**
6
 * Class     DashboardController
7
 *
8
 * @package  Arcanesoft\Pages\Http\Controllers\Back
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class DashboardController extends Controller
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Instantiate the controller.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct();
23
24
        $this->setCurrentPage('cms-dashboard');
25
    }
26
27
    /* ------------------------------------------------------------------------------------------------
28
     |  Main Functions
29
     | ------------------------------------------------------------------------------------------------
30
     */
31
    public function index()
32
    {
33
        $this->authorize('cms.dashboard.stats');
34
35
        $title = 'CMS - Dashboard';
36
        $this->setTitle($title);
37
        $this->addBreadcrumb('Statistics');
38
39
        return $this->view('backend.dashboard');
40
    }
41
}
42