| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class HomeController extends Controller |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create a new controller instance. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | public function __construct() |
||
| 18 | { |
||
| 19 | $this->middleware('auth'); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Show the application dashboard. |
||
| 24 | * |
||
| 25 | * @return \Illuminate\Http\Response |
||
| 26 | */ |
||
| 27 | public function index() |
||
| 28 | { |
||
| 29 | $latestVersion = Cache::remember('latestVersion', 3600, function () { |
||
| 30 | return InfoService::latestRelease(); |
||
| 31 | }); |
||
| 32 | |||
| 33 | return view('home', compact('latestVersion')); |
||
|
|
|||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Show help information (GameAP resources etc) |
||
| 38 | * @return \Illuminate\Http\Response |
||
| 39 | */ |
||
| 40 | public function help() |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Report a bug |
||
| 47 | */ |
||
| 48 | public function reportBug() |
||
| 49 | { |
||
| 50 | return view('report_bug'); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Upgrade panel page |
||
| 55 | */ |
||
| 56 | public function update() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |