PHP code example of ngmy / laravel-query-log-tracker

1. Go to this page and download the library: Download ngmy/laravel-query-log-tracker 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/ */

    

ngmy / laravel-query-log-tracker example snippets


Ngmy\LaravelQueryLogTracker\QueryLogTrackerServiceProvider::class,

'QueryLogTracker' => Ngmy\LaravelQueryLogTracker\QueryLogTrackerFacade::class,

QueryLogTracker::beginDisable();
// Execute queries for which you want to disable log
QueryLogTracker::endDisable();

QueryLogTracker::disable(function () {
    // Execute queries for which you want to disable log
});
console
php artisan vendor:publish
console
php artisan vendor:publish --provider="Ngmy\LaravelQueryLogTracker\QueryLogTrackerServiceProvider"