PHPackages                             ibrand/laravel-database-logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ibrand/laravel-database-logger

ActiveLibrary[Database &amp; ORM](/categories/database)

ibrand/laravel-database-logger
==============================

ibrand laravel database logger

v1.0.5(7y ago)2916.7k↓85.7%2MITPHPPHP &gt;=5.6

Since Dec 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/guojiangclub/laravel-database-logger)[ Packagist](https://packagist.org/packages/ibrand/laravel-database-logger)[ RSS](/packages/ibrand-laravel-database-logger/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

Laravel Database Logger
=======================

[](#laravel-database-logger)

A simple database logger for Laravel application, support Guard,Auth to multiple file record.

[![Build Status](https://camo.githubusercontent.com/0bc976f35b0b143960cc91322c97c200ddd93cf5a5d6d9597ca2eaa3787be558/68747470733a2f2f7472617669732d63692e6f72672f696272616e6463632f6c61726176656c2d64617461626173652d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ibrandcc/laravel-database-logger)[![Build Status](https://camo.githubusercontent.com/b7b77147bb04f27fca91b136dec56ad82988aa9e13198f28fa9112cad09f6cc5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696272616e6463632f6c61726176656c2d64617461626173652d6c6f676765722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ibrandcc/laravel-database-logger/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ae2fd727da038027ed3e913a654eeff808b1cf70305a48934e2c89ee544d0f95/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696272616e6463632f6c61726176656c2d64617461626173652d6c6f676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ibrandcc/laravel-database-logger/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/94ade0477785461ea9468f03f24eb7820fd3ec105a4ab64d6fefc632c4b18c54/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f6c61726176656c2d64617461626173652d6c6f676765722f762f737461626c65)](https://packagist.org/packages/ibrand/laravel-database-logger)[![Latest Unstable Version](https://camo.githubusercontent.com/1d93e9a45ede273b1f0189b2d4ab25a9733873c09d05134a32107be7bf5db97f/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f6c61726176656c2d64617461626173652d6c6f676765722f762f756e737461626c65)](https://packagist.org/packages/ibrand/laravel-database-logger)[![License](https://camo.githubusercontent.com/fc404ff6cf2ea6d4f32861e252fb319f26dd5f7940b1331309d899ef5f3d0cea/68747470733a2f2f706f7365722e707567782e6f72672f696272616e642f6c61726176656c2d64617461626173652d6c6f676765722f6c6963656e7365)](https://packagist.org/packages/ibrand/laravel-database-logger)

- [Chinese Documentation](./README.cn.md)

Feature
-------

[](#feature)

1. Log files support anonymous or guard types.
2. Record auth uesrs.
3. Record request url
4. Support record specifying SQL statement(SELECT,INSET INTO,UPDATE,DELETE,ALTER TABLE etc.)
5. Record slow logs separately.

Installation
------------

[](#installation)

```
composer require ibrand/laravel-database-logger:~1.0 -vvv

```

**Below Laravel5.5 version**

In `config/app.php` 'providers' region add

```
iBrand\DatabaseLogger\ServiceProvider::class

```

Publish config file.

```
php artisan vendor:publish --provider="iBrand\DatabaseLogger\ServiceProvider"

```

Usage
-----

[](#usage)

### Enable in .env or config file.

[](#enable-in-env-or-config-file)

Set `log_queries=>true` in `config/ibrand/dblogger.php` file. or set `DB_LOG_QUERIES = true` in `.env` file.

### use `databaselogger` middleware

[](#use-databaselogger-middleware)

```
Route::get('test', 'Controller@index')->middleware('databaselogger');

```

For more middleware users see the document.

[laravel-routing](https://laravel.com/docs/5.5/routing#route-group-middleware)

Preview
-------

[](#preview)

[![snapshot_1515552729718.png](https://camo.githubusercontent.com/7e973f251458e87d07d5f6b57d6f915eb6100bf2406c1a78c4fb0bdd98e57e7b/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f45384230343245454630313434363538393332364137413446463031364336352f39343539)](https://camo.githubusercontent.com/7e973f251458e87d07d5f6b57d6f915eb6100bf2406c1a78c4fb0bdd98e57e7b/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f45384230343245454630313434363538393332364137413446463031364336352f39343539)[![snapshot_1515552729719.png](https://camo.githubusercontent.com/4be648e2892676b8a8c10217f6afd395400c18dae8188b944e6cbd09bbadb166/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f34364142423735393844414234323942424234433241373232323938423046432f39343632)](https://camo.githubusercontent.com/4be648e2892676b8a8c10217f6afd395400c18dae8188b944e6cbd09bbadb166/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f34364142423735393844414234323942424234433241373232323938423046432f39343632)[![snapshot_1515552729720.png](https://camo.githubusercontent.com/de935199a342b7526f834fded9764dc22dcbae2b26762efdeb276fd12e168344/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f33463442413345374232423434383142413845354141304141373032444446362f39343635)](https://camo.githubusercontent.com/de935199a342b7526f834fded9764dc22dcbae2b26762efdeb276fd12e168344/68747470733a2f2f6e6f74652e796f7564616f2e636f6d2f7977732f7075626c69632f7265736f757263652f35396135396265323738623165303630343638346564343232383735303939632f786d6c6e6f74652f33463442413345374232423434383142413845354141304141373032444446362f39343635)

Contributing
------------

[](#contributing)

If you find any bug or problem please raise the [issue here](https://github.com/ibrandcc/laravel-database-logger/issues).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~82 days

Total

6

Last Release

2772d ago

PHP version history (2 changes)1.0.0PHP ^5.6|^7.0

v1.0.1PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/05a4dd937f49471fe1d2cb4da6445668df23b2ad2422789b3aaed3ef9459c377?d=identicon)[shjchen](/maintainers/shjchen)

---

Top Contributors

[![chenbidepro](https://avatars.githubusercontent.com/u/9166101?v=4)](https://github.com/chenbidepro "chenbidepro (21 commits)")

---

Tags

databaselaravellaravel-packageloggerlaravelibranddatabase logger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ibrand-laravel-database-logger/health.svg)

```
[![Health](https://phpackages.com/badges/ibrand-laravel-database-logger/health.svg)](https://phpackages.com/packages/ibrand-laravel-database-logger)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

392393.3k5](/packages/rtconner-laravel-likeable)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121134.8k](/packages/highsolutions-eloquent-sequence)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40203.4k](/packages/cybercog-laravel-nova-ban)[cubettech/lacassa

Cassandra based query builder for laravel.

348.6k](/packages/cubettech-lacassa)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
