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

SettingsController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

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;
2
3
use Arcanesoft\Core\Traits\Notifyable;
4
5
/**
6
 * Class     SettingsController
7
 *
8
 * @package  Arcanesoft\Foundation\Http\Controllers\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SettingsController extends Controller
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Traits
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    use Notifyable;
18
19
    /* ------------------------------------------------------------------------------------------------
20
     |  Constructor
21
     | ------------------------------------------------------------------------------------------------
22
     */
23
    /**
24
     * SettingsController constructor.
25
     */
26
    public function __construct()
27
    {
28
        parent::__construct();
29
30
        $this->setCurrentPage('foundation-settings');
31
        $this->addBreadcrumbRoute('Settings', 'admin::foundation.settings.index');
32
    }
33
34
    /* ------------------------------------------------------------------------------------------------
35
     |  Main Functions
36
     | ------------------------------------------------------------------------------------------------
37
     */
38
    public function index()
39
    {
40
        $title = 'Generals';
41
        $this->setTitle("Settings - {$title}");
42
        $this->addBreadcrumb($title);
43
        $this->setCurrentPage('foundation-settings-generals');
44
45
        return $this->view('admin.settings.index');
46
    }
47
}
48