validated(); $user = User::where('id', Auth::user()->getAuthIdentifier())->firstOrFail(); $user->checkword = $validated['checkword']; $user->save(); return response()->json(['success' => true]); } }