Hello,
We are using the query builder and are trying to make use of the selectRaw method. But we notice some strange behaviour with the back ticks. See the following example:
DB::table('orders')->selectRaw('price * ? as price_with_tax', [1.0825])->toMySQL();
Gives the following result:
SELECT `[{raw}]price * 1`.`0825 as price_with_tax` FROM `orders`
For some reason it adds back ticks around the expressions. Which breaks the query. I guess this is unwanted behaviour? Is there a workaround for this?