PHPackages                             jhonoryza/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. jhonoryza/laravel-database-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jhonoryza/laravel-database-logger
=================================

2.0.0(6mo ago)025MITPHPPHP ^8.1

Since Sep 10Pushed 6mo agoCompare

[ Source](https://github.com/jhonoryza/laravel-database-logger)[ Packagist](https://packagist.org/packages/jhonoryza/laravel-database-logger)[ RSS](/packages/jhonoryza-laravel-database-logger/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (6)Versions (9)Used By (0)

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

[](#laravel-database-logger)

[![Latest Stable Version](https://camo.githubusercontent.com/8037e9c90a2d71f4caeebc15cf5bdef0cac51a3d6ff45513210bc1ade2d765c1/687474703a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6c61726176656c2d64617461626173652d6c6f676765722f76)](https://packagist.org/packages/jhonoryza/laravel-database-logger) [![Total Downloads](https://camo.githubusercontent.com/ab2116ecc1b88bfbf60c469140dbdf706ac6bc00ebf899828d8d334e21c22ef5/687474703a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6c61726176656c2d64617461626173652d6c6f676765722f646f776e6c6f616473)](https://packagist.org/packages/jhonoryza/laravel-database-logger) [![Latest Unstable Version](https://camo.githubusercontent.com/c8c41b96b3f70a6b34b98b26ba7994c0adac16758175193a6e0de35410add334/687474703a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6c61726176656c2d64617461626173652d6c6f676765722f762f756e737461626c65)](https://packagist.org/packages/jhonoryza/laravel-database-logger) [![License](https://camo.githubusercontent.com/873d304e285d8cff0415d12cf7e6b29212fe2df1c9c3e9afc85dea55f30bd43b/687474703a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6c61726176656c2d64617461626173652d6c6f676765722f6c6963656e7365)](https://packagist.org/packages/jhonoryza/laravel-database-logger) [![PHP Version Require](https://camo.githubusercontent.com/b1a3ee0ae307f019229b7a1a8a8021dfae19cfd5e819ca47b14ab96e4606760c/687474703a2f2f706f7365722e707567782e6f72672f6a686f6e6f72797a612f6c61726176656c2d64617461626173652d6c6f676765722f726571756972652f706870)](https://packagist.org/packages/jhonoryza/laravel-database-logger)

This package provides ability to store laravel log to the database table.

Requirement
-----------

[](#requirement)

- PHP 8.1 - 8.4
- Laravel 9, 10, 11, 12

Getting Started
---------------

[](#getting-started)

1. install

```
composer require jhonoryza/laravel-database-logger
```

2. publish config files

```
php artisan vendor:publish --tag laravel-database-logger
```

3. check the `logging-db` config file and change logger db connection.
4. it is recommended to use different database connection from the main used one.
5. after package is installed, you can run `php artisan migrate` to create table `logs_app` and `logs_api`
6. then modify `logging.php`

    - add `database` channel to the `stack` channel

    ```
