| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class CourseController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a new controller instance. |
||
| 13 | */ |
||
| 14 | public function __construct() |
||
| 15 | { |
||
| 16 | $this->middleware('auth'); |
||
| 17 | $this->middleware('can.admin'); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Display a resource of given id. |
||
| 22 | * |
||
| 23 | * @param int $id |
||
| 24 | * |
||
| 25 | * @return \Illuminate\View\View |
||
| 26 | */ |
||
| 27 | public function show($id) |
||
| 41 | } |
||
| 42 | } |
||
| 43 |