PHP code example of mr-sabya / querylens
1. Go to this page and download the library: Download mr-sabya/querylens 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/ */
mr-sabya / querylens example snippets
return [
/*
|--------------------------------------------------------------------------
| Enable QueryLens
|--------------------------------------------------------------------------
*/
'enabled' => env('QUERYLENS_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Dashboard URI
|--------------------------------------------------------------------------
*/
'uri' => 'querylens',
/*
|--------------------------------------------------------------------------
| Slow Query Threshold (milliseconds)
|--------------------------------------------------------------------------
*/
'slow_query_threshold' => 500,
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
*/
'middleware' => [
'web',
// 'auth',
],
/*
|--------------------------------------------------------------------------
| Maximum Stored Logs
|--------------------------------------------------------------------------
*/
'max_logs' => 5000,
];
'middleware' => [
'web',
'auth',
],
bash
php artisan querylens:install
text
config/querylens.php
bash
php artisan serve