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.