Last active
June 27, 2020 05:46
-
-
Save ahmedsayedabdelsalam/11aede0fdf150429dc20ff1d7319350a to your computer and use it in GitHub Desktop.
phpstorm live templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (querylog) surounds a block of code with laravel qurey log | |
// https://twitter.com/a7medsayed/status/1276724409974296577 | |
\DB::enableQueryLog(); | |
$SELECTION$ | |
\Log::info('query-log', [\DB::getQueryLog()]); | |
// (querycount) surounds a block of code with laravel qurey log count | |
\DB::enableQueryLog(); | |
$SELECTION$ | |
\Log::info('query-log', [count(\DB::getQueryLog())]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment