New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lemberg/laravel-query-logs

1,108 1
Install
composer require lemberg/laravel-query-logs
Latest Version:6.0.1
PHP:>=7.2.5
Laravel:6
Older releases:5
License:MIT
Last Updated:Jan 27, 2021
Links: GitHub  ·  Packagist
Maintainer: bkhrupa

Laravel Query Logs

Log database queries into file.

Requirements

  • PHP >= 7.0
  • Laravel = 5.4.*|5.5.*

Getting Started

Install package via composer

$ composer require lemberg/laravel-query-logs

Register Service Provider (Only for Laravel 5.4)

'providers' => [
    Lemberg\LaraveQueryLogs\ServiceProvider::class,
],

Publish Configuration File

php artisan vendor:publish --provider="Lemberg\LaravelQueryLogs\ServiceProvider" --tag="config"

Usage

  1. Add QUERY_LOGS=true to .env file.

  2. By default queries will store into /storage/logs/sql.log file.
    You can change it by editing the path option in query-log.php file

Actually that's all:)

License

Please see License File for more information.

Related Packages

addapp/laravel-query-log

Logs full mysql queries.

5,443 12
kitloong/laravel-app-logger

Laravel log for your application

1,461,919 10
muhdfaiz/laravel-tail-db

Provide artisan command to monitor realtime database query executed from the app...

28,358 58
sergiq/laravellog

Simple laravel log

11,942 0
coolonce/logger-interface

This package allows you to send data for logging to the HTTP daemon associated w...

4,640 1

Version History

Version Released PHP Laravel License
6.0.1 >=7.2.5 6.*.* MIT
6.0.0 >=7.2.5 6.*.* MIT
1.0.2 >=7.0.0 5.4.*|5.5.*|5.6.* MIT
1.0.1 >=7.0.0 5.4.*|5.5.*|5.6.* Apache-2.0
1.0.0 >=7.0.0 5.4.*|5.5.* Apache-2.0