Completed
Push — master ( eebd52...3cd9a5 )
by ARCANEDEV
08:34
created

CategoriesController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 10
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
1
<?php namespace Arcanesoft\Blog\Http\Controllers\Foundation;
2
3
use Arcanesoft\Blog\Bases\FoundationController;
4
5
/**
6
 * Class     CategoriesController
7
 *
8
 * @package  Arcanesoft\Blog\Http\Controllers\Foundation
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class CategoriesController extends FoundationController
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Constructor
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Instantiate the controller.
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct();
23
24
        $this->setCurrentPage('blog-categories');
25
        $this->addBreadcrumbRoute('Categories', 'blog::foundation.categories.index');
26
    }
27
28
    /* ------------------------------------------------------------------------------------------------
29
     |  Main Functions
30
     | ------------------------------------------------------------------------------------------------
31
     */
32
    public function index()
33
    {
34
        $this->authorize('blog.categories.list');
35
36
        $title = 'Blog - Categories';
37
        $this->setTitle($title);
38
        $this->addBreadcrumb('List all categories');
39
40
        return $this->view('foundation.categories.list');
41
    }
42
}
43