public function index() { if (Auth::guest()) { return view('auth.login'); } else { $user = Auth::user(); } $vefsida = Vefspurn::orderBy('viewcount', 'desc')->get(); $verktakar = Verktakar::orderBy('viewcount', 'desc')->get(); $forsida = Forsida::get()->where('id', 1)->first(); return view('indextest2', compact('user', 'vefsida', 'verktakar', 'forsida')); }