Completed
Push — master ( 756eed...5aa9a0 )
by ARCANEDEV
03:52
created

MetasController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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