PHP code example of feyman / laravel-sql-logger
1. Go to this page and download the library: Download feyman/laravel-sql-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/ */
feyman / laravel-sql-logger example snippets
composer
public function register()
{
if ($this->app['config']->get('app.debug')) {
$this->app->register(\Feyman\LaravelSqlLogger\Providers\ServiceProvider::class);
}
}
if (env('APP_DEBUG')) {
$app->register(\Feyman\LaravelSqlLogger\Providers\LumenServiceProvider::class);
}
php artisan vendor:publish --provider="Feyman\LaravelSqlLogger\Providers\ServiceProvider"
php artisan vendor:publish