AdminController::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
1
<?php namespace WITR\Http\Controllers\Admin;
2
3
use WITR\Http\Requests;
4
use WITR\Http\Controllers\Controller;
5
6
use Illuminate\Http\Request;
7
8
class AdminController extends Controller {
9
10
	public function __construct()
11
	{
12
		$this->middleware('auth');
13
		$this->middleware('editor');
14
	}
15
16
	/**
17
	 * Display a listing of the resource.
18
	 *
19
	 * @return Response
20
	 */
21
	public function index()
22
	{
23
		return view('admin.index');
24
	}
25
26
}
27