public function index() { if (!Auth::check()) { $auth = new AuthController(); return $auth->getLogin(); } return redirect()->intended('dashboard'); }