PHP code example of verbanent / laravel-sql-performance-guard
1. Go to this page and download the library: Download verbanent/laravel-sql-performance-guard 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/ */
verbanent / laravel-sql-performance-guard example snippets
return [
'time_threshold' => env('SQL_TIME_THRESHOLD', 100.00),
'key_length_threshold' => env('SQL_KEY_LENGTH_THRESHOLD', 256),
'rows_threshold' => env('SQL_ROWS_THRESHOLD', 1000),
];
shell
php artisan vendor:publish --provider="Verbanent\SqlPerformanceGuard\SqlPerformanceGuardServiceProvider" --tag="config"
shell
APP_ENV=local
APP_DEBUG=true
LOG_CHANNEL=single
LOG_LEVEL=debug