PHPackages                             jeetenkumarsingh/laravel-log-action-to-mysql - 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. jeetenkumarsingh/laravel-log-action-to-mysql

ActiveLibrary

jeetenkumarsingh/laravel-log-action-to-mysql
============================================

A database driver for logging with Laravel

03PHP

Since Jul 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeetenkumarsingh/laravel-log-action-to-mysql)[ Packagist](https://packagist.org/packages/jeetenkumarsingh/laravel-log-action-to-mysql)[ RSS](/packages/jeetenkumarsingh-laravel-log-action-to-mysql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

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

[](#laravel-database-logger)

This package provides a driver to store log messages in the database.

Tested on Laravel 8.

```
use Illuminate\Support\Facades\Log;

Log::channel('db')->info('Your message');
```

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

[](#installation)

You can install the package via composer:

```
composer require jeetenkumarsingh/laravel-log-action-to-mysql
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="log-db-migrations"
php artisan migrate
```

Now add a new channel to `config/logging.php`.

```
use Jeter\LaravelLogDb\DatabaseLogger;

return [
    'channels' => [
        'db' => [
            'driver' => 'custom',
            'via'    => DatabaseLogger::class,
        ],
    ]
]
```

Usage
-----

[](#usage)

You could add the `db` channel to the `stack` channel and then log the normal way.

You could also explicitly log to the database:

```
use Illuminate\Support\Facades\Log;

Log::channel('db')->info('Your message');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Jitendra Kumar Singh](https://jitendrakumarsingh.com)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a20545be93dc203e11fedd8344b755c534a9dca7a5c1494428d571ece1a6d06?d=identicon)[jeetenkumarsingh](/maintainers/jeetenkumarsingh)

---

Top Contributors

[![jeetenkumarsingh](https://avatars.githubusercontent.com/u/2049995?v=4)](https://github.com/jeetenkumarsingh "jeetenkumarsingh (7 commits)")

### Embed Badge

![Health badge](/badges/jeetenkumarsingh-laravel-log-action-to-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/jeetenkumarsingh-laravel-log-action-to-mysql/health.svg)](https://phpackages.com/packages/jeetenkumarsingh-laravel-log-action-to-mysql)
```

PHPackages © 2026

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