| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CourseController extends Controller |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Create a new controller instance. |
||
| 12 | */ |
||
| 13 | public function __construct() |
||
| 14 | { |
||
| 15 | $this->middleware('auth'); |
||
| 16 | $this->middleware('can.student'); |
||
| 17 | $this->middleware('student.verified'); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Display a listing of the resource. |
||
| 22 | * |
||
| 23 | * @return \Illuminate\View\View |
||
| 24 | */ |
||
| 25 | public function index() |
||
| 38 |