db()->whereRaw($where)->find(); if ($data) { return $data['code']; } return false; } }