ronghuaxueleng

102 经验值

$query = Model::where('foo', '=', 'bar');
$sql = str_replace("?", "'%s'", $query->toSql())
vsprintf($sql, $query->getBindings())