PHP code example of antonmakasin / laravel-http-query-logger

1. Go to this page and download the library: Download antonmakasin/laravel-http-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/ */

    

antonmakasin / laravel-http-query-logger example snippets


//in route.php or web.php
Route::middleware('http.query.logger')->post('/test',function(){
    return response()->json("test");
});
bash
php artisan vendor:publish --tag=config --provider="Oskingv\HttpQueryLogger\Providers\HttpQueryLoggerServiceProvider"
bash
php artisan migrate
bash
php artisan http_query_logger:clear