$query = str_replace(array('?'), array(''%s''), $builder->toSql()); $query = vsprintf($query, $builder->getBindings()); dump($query);