PHP code example of mtolhuys / laravel-request-benchmark
1. Go to this page and download the library: Download mtolhuys/laravel-request-benchmark 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/ */
mtolhuys / laravel-request-benchmark example snippets
return [
'enabled' => true, // set to false to globally stop benchmark
'log' => true, // set to false to stop creating log entries
'storage_path' => null, // if specified it will create a request-benchmark.json containing all data
];
php
Route::group(['middleware' => ['foo', 'bar', 'benchmark']], function() {
// benchmarked routes
});
// Or
Route::get('/', 'IndexController@index')->middleware('benchmark');