PHP code example of fatty-rabbit / sql-log

1. Go to this page and download the library: Download fatty-rabbit/sql-log 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/ */

    

fatty-rabbit / sql-log example snippets


'providers' => array(
    # other providers omitted
    'FattyRabbit\SqlLog\SqlLogSearviceProvider',
);



return [
    'base_level' => 'debug',
    'ignore' => [
        'ip' => [
            '127.0.0.1',
        ],
        'uri' => [],
    ],
];
bash
$ php artisan vendor:publish --provider="FattyRabbit\SqlLog\SqlLogSearviceProvider"