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

HomeController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 4
c 1
b 0
f 1
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A index() 0 3 1
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