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

DashboardController::__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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
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