How to get query builder to output its raw SQL query as a string in Laravel?
Published by on
Learn how to get the raw SQL string from a query builder in Laravel the easy way. Get to know this information to inspect the query used to retrieve the data.
You could also use ray($query) to see the query in Ray.
Jason McCreary explains how he went from using AI for tedious snippets to letting agents handle nearly all coding, testing, and review work. It is a clear account of the guardrails, workflow shifts, and mindset Read more…
Below MySQL 8.0.1, or on a server Laravel misreads, workers reserve jobs with a plain FOR UPDATE and can deadlock on the DELETE. One tinker line shows which lock yours use. Read more
Oh Dear shares hard numbers on how the recent critical PHP vulnerabilities rippled through the ecosystem, with site outages peaking at 18.8 percent and down alerts rising to 25 times the normal level. It is Read more…