/** * Display Landingpage. * * @return Illuminate\View\View */ public function showLandingpage() { if (Auth::check()) { return redirect('/dashboard'); } else { $screenshots = \Cache::remember('global.screenshot_count', 5, function () { $result = ApiLog::select('id')->withTrashed()->latest()->first(); if ($result) { return $result->id; } return 0; }); return view('static.landingpage', compact('screenshots')); } }