PHP code example of liyu / laravel-query-logger
1. Go to this page and download the library: Download liyu/laravel-query-logger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liyu / laravel-query-logger example snippets
return [
//...
'query' => [
'enabled' => env('LOG_QUERY', false),
// Only record queries that are slower than the following time
// Unit: milliseconds
'slower_than' => 0,
],
];