ensureStateIsValid(); return Inertia::render('settings/two-factor', [ 'twoFactorEnabled' => $request->user()->hasEnabledTwoFactorAuthentication(), 'requiresConfirmation' => Features::optionEnabled(Features::twoFactorAuthentication(), 'confirm'), ]); } }