I used to use the following code in routes.php to display all SQLs executed in Eloquent:
// Display all SQL executed in Eloquent
Event::listen('illuminate.query', function($query)
{
var_dump($query);
});
But it doesn't work in Laravel 5.2 any more. Is it possible to get this feature back in 5.2? Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire