Is there a quick way to modify a SQL query generated by Laravel's Fluent to have a
For the job you need to create a new Grammar that will have the right string in there:
The grammar is a public property of the
DB or in this case
Database stored connection. This is not really straight forward, but from the visibility of the properties you should be able to inject your special grammar into the database layer.
I also suggest you bring the issue up with the project, they probably have got a better idea how to make that more flexible for cases like these.
 This was a former, to the date of the answer reference. If you see this today, you need to adopt to the Laravel version you use, e.g. https://github.com/laravel/framework/blob/4.0/src/Illuminate/Database/Query/Grammars/Grammar.php#L545 for 4.0, these classes have moved into