validate([ 'code' => ['required', 'integer', new OTPVerificationRule(auth()->user()->phone_number)], ]); auth()->user()->update([ 'phone_number_verified_at' => now(), ]); return redirect('/'); } }