Download the PHP package klaravel/db-logger without Composer
On this page you can find all versions of the php package klaravel/db-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package db-logger
Database Queries Logger for Laravel 5.3+
This module allows you to log SQL queries (and slow SQL queries) to log file in Laravel framework. It's useful mainly when developing your application to verify whether your queries are valid and to make sure your application doesn't run too many or too slow database queries.
Installation:
-
Run
in console to install this module
-
Open
config/app.php
and inproviders
section add: -
Run:
in your console to publish default configuration files
-
Open
config/dblogger.php
file and adjust settings to your need (by default it uses.env
file so you can skip this step if you want). -
In your .env file add the following entries:
and adjust values to your needs. If you have also
.env.sample
it's also recommended to add those entries also in.env.sample
file just to make sure everyone know about those env variables. Be aware thatDB_LOG_DIRECTORY
is directory inside storage directory. If you want you can change it editingconfig/dblogger.php
file.
Note:
Make sure defined
DB_LOG_DIRECTORY
directory should be exists default direcotry is\storage\logs\db\
else application will throw error.