where('invite_code', $value)->first(); if (empty($data)) { return false; } return true; } }