Completed
Push — master ( 72edcf...02e9e6 )
by ARCANEDEV
11:59
created

SettingsController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php namespace Arcanesoft\Seo\Http\Controllers\Admin;
2
3
use Arcanedev\LaravelSeo\Seo;
4
5
/**
6
 * Class     SettingsController
7
 *
8
 * @package  Arcanesoft\Seo\Http\Controllers\Admin
9
 * @author   ARCANEDEV <[email protected]>
10
 *
11
 * @todo: Add authorization checks
12
 */
13
class SettingsController extends Controller
14
{
15
    /* -----------------------------------------------------------------
16
     |  Constructor
17
     | -----------------------------------------------------------------
18
     */
19
    /**
20
     * SettingsController constructor.
21
     */
22
    public function __construct()
23
    {
24
        parent::__construct();
25
26
        $this->setCurrentPage('seo-settings');
27
        $this->addBreadcrumbRoute('Settings', 'admin::seo.settings.index');
28
    }
29
30
    public function index()
31
    {
32
        $this->setTitle($title = 'Settings');
33
        $this->addBreadcrumb($title);
34
35
        $redirector = Seo::getConfig('redirector');
36
37
        return $this->view('admin.settings', compact('redirector'));
38
    }
39
}
40