where('mem_no', $memNo)->first(); } public function emailsMatch(int $memNo, string $email): bool { $mem = $this->findByMemNo($memNo); if (!$mem || empty($mem->email)) return false; return strcasecmp((string)$mem->email, $email) === 0; } public function findForPhonePay(int $memNo): ?MemInfo { return MemInfo::query() ->select(['mem_no', 'cell_phone', 'cell_corp']) // 컬럼명은 너 DB에 맞춰 ->where('mem_no', $memNo) ->first(); } }