Skip to content

Instantly share code, notes, and snippets.

@mogarick
Last active January 18, 2017 18:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogarick/f821fe7dedc8ed2531e5ba1aade57b68 to your computer and use it in GitHub Desktop.
Save mogarick/f821fe7dedc8ed2531e5ba1aade57b68 to your computer and use it in GitHub Desktop.
Log de queries generadas por Laravel Eloquent
<?php
// Display all SQL executed in Eloquent
//source: http://laravel-tricks.com/tricks/display-all-sql-executed-in-eloquent
Event::listen('illuminate.query', function($query){Log::debug($query);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment