This commit is contained in:
nurmuhammet committed 2023-12-02 14:45:55 +05:00
1 parent 98df909c2d
commit a57006caa3
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ class PhoneCodeVerification implements ValidationRule
public function validate(string $attribute, mixed $value, Closure $fail): void public function validate(string $attribute, mixed $value, Closure $fail): void
{ {
$verification = Verification::where('username', auth()->user()->phone) $verification = Verification::where('username', auth()->user()->phone)
->where('code', $request->verification_code) ->where('code', $value)
->first(); ->first();
if (! $verification) { if (! $verification) {