Support the ongoing development of →
Last updated 1 year ago.

Did you find a solution? I'm trying to do the same thing.

It looks like Illuminate\Database\Query\Grammars\SqlServerGrammar uses a "compileFrom" function. This compiles the lock based on $query->lock

I've tried using this but I'm getting 2 outputs of "with (nolock)" like the below sample query.

select * from users with (nolock) where = 1 limit 1 with (nolock)


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.