Laravel converte o querybuilder para string
DB::table('tableName')->toSql()
Nimorum
DB::table('tableName')->toSql()