Completed
Pull Request — master (#91)
by Tim
02:39
created

ProductsController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
9
class ProductsController extends Controller
10
{
11
    /**
12
     * ProductsController constructor.
13
     */
14
    public function __construct()
15
    {
16
        $this->middleware('auth');
17
        $this->middleware('lang');
18
    }
19
20
    public function index()
21
    {
22
        return view('products.index');
23
    }
24
25
    public function categories()
26
    {
27
        return view('products.categories');
28
    }
29
30
    public function store()
31
    {
32
33
    }
34
}
35