PHP code example of cbdt / query-diet
1. Go to this page and download the library: Download cbdt/query-diet 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/ */
cbdt / query-diet example snippets
return [
'enabled' => env('QUERY_DIET_ENABLED', true),
'bad_query_time_ms' => env('QUERY_DIET_BAD_QUERY_TIME_MS', 100),
'bad_query_count' => env('QUERY_DIET_BAD_QUERY_COUNT', 10),
];
bash
php artisan vendor:publish --tag="query-diet-config"