user()) { return view('spa'); } return redirect()->route('login'); // return view('index'); } }