Skip to content

Instantly share code, notes, and snippets.

@ejunker
Created November 5, 2019 16:33
Show Gist options
  • Save ejunker/bd7711a2222b0f86ad3f968fa09d84ce to your computer and use it in GitHub Desktop.
Save ejunker/bd7711a2222b0f86ad3f968fa09d84ce to your computer and use it in GitHub Desktop.
<?php
return [
'defaultIncludes' => [
__DIR__ . '/bootstrap-tinker.php',
],
'startupMessage' => sprintf('<info>%s</info>', shell_exec('php artisan inspire')),
];
<?php
DB::listen(static function ($query) {
dump([$query->sql, $query->bindings, $query->time]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment