Skip to content

Instantly share code, notes, and snippets.

@rmariuzzo
Created July 28, 2013 23:27
Show Gist options
  • Save rmariuzzo/6100701 to your computer and use it in GitHub Desktop.
Save rmariuzzo/6100701 to your computer and use it in GitHub Desktop.
Sublime Text 2 snippet to listen for illuminate query on Laravel 4. Useful for profiling generated SQL queries.
<snippet>
<content><![CDATA[
Event::listen('illuminate.query', function($sql) {dd($sql);});
]]></content>
<tabTrigger>sql</tabTrigger>
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment