Completed
Pull Request — master (#27)
by Nick
07:58 queued 01:08
created

HomeController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
/**
3
 * Home Controller.
4
 *
5
 * @package   App\Http\Controllers
6
 * @author    Taylor Otwell <[email protected]>
7
 * @author    Nick Menke <[email protected]>
8
 * @copyright 2018-2019 Nick Menke
9
 * @link      https://github.com/nlmenke/vertebrae
10
 */
11
12
namespace App\Http\Controllers;
13
14
use Illuminate\Contracts\Support\Renderable;
15
16
/**
17
 * The Home controller class.
18
 *
19
 * This class contains all functionality required to load the authenticated
20
 * homepage - a dashboard only accessible when logged in.
21
 *
22
 * @since 0.0.0-framework introduced
23
 * @since x.x.x           modified to extend AbstractController
24
 */
25
class HomeController extends AbstractController
26
{
27
    /**
28
     * Create a new controller instance.
29
     *
30
     * @return void
31
     */
32
    public function __construct()
33
    {
34
        parent::__construct();
35
36
        $this->middleware('auth');
37
    }
38
39
    /**
40
     * Shows the application dashboard.
41
     *
42
     * @return Renderable
43
     */
44
    public function index()
45
    {
46
        return view('home');
47
    }
48
}
49