Completed
Push — master ( 70dfdf...7aac81 )
by ARCANEDEV
15:09
created

DashboardController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A index() 0 6 1
1
<?php namespace Arcanesoft\Foundation\Http\Controllers\Admin;
2
3
/**
4
 * Class     DashboardController
5
 *
6
 * @package  Arcanesoft\Foundation\Http\Controllers\Admin
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class DashboardController extends Controller
10
{
11
    /* -----------------------------------------------------------------
12
     |  Constructor
13
     | -----------------------------------------------------------------
14
     */
15
16
    /**
17
     * DashboardController constructor.
18
     */
19
    public function __construct()
20
    {
21
        parent::__construct();
22
23
        $this->setCurrentPage('foundation-home');
24
        $this->addBreadcrumbRoute(trans('foundation::dashboard.titles.dashboard'), 'admin::foundation.home');
25
    }
26
27
    /* -----------------------------------------------------------------
28
     |  Main Methods
29
     | -----------------------------------------------------------------
30
     */
31
32
    /**
33
     * Show the foundation dashboard.
34
     *
35
     * @return string
36
     */
37
    public function index()
38
    {
39
        $this->setTitle(trans('foundation::dashboard.titles.dashboard'));
40
41
        return $this->view('admin.dashboard');
42
    }
43
}
44