PHPackages                             buckhamduffy/laravel-request-log - 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. buckhamduffy/laravel-request-log

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

buckhamduffy/laravel-request-log
================================

Creates a log file with request information

v1.0.1(1y ago)00MITPHPPHP ^8.2CI passing

Since Dec 4Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/buckhamduffy/laravel-request-log)[ Packagist](https://packagist.org/packages/buckhamduffy/laravel-request-log)[ Docs](https://github.com/buckhamduffy/laravel-request-log)[ RSS](/packages/buckhamduffy-laravel-request-log/feed)WikiDiscussions main Synced 1mo ago

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

Creates a log file with request information
===========================================

[](#creates-a-log-file-with-request-information)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7df32ace40dbea3189348257def4c189c3957963ae81b74ed34b5de37807e6db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6275636b68616d64756666792f6c61726176656c2d726571756573742d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/buckhamduffy/laravel-request-log)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bfdc29621ec9fb36230b68ebf6e8b98605e3f54ebef0736d30f3e3aff187859a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6275636b68616d64756666792f6c61726176656c2d726571756573742d6c6f672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/buckhamduffy/laravel-request-log/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/25f0e444b6772d3ca99991b904067fe18970b12a80b1250b32d5420f7709085c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6275636b68616d64756666792f6c61726176656c2d726571756573742d6c6f672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/buckhamduffy/laravel-request-log/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8109b6d3db37115d649edc91195b6addb76b94afe5ae5009474bc47d1e6488a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6275636b68616d64756666792f6c61726176656c2d726571756573742d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/buckhamduffy/laravel-request-log)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/1db7d96845d33e2f978db2bad507592b4597bdbf219dc1b82362cafa4978b6db/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d726571756573742d6c6f672e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-request-log)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require buckhamduffy/laravel-request-log
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-request-log-config"
```

This is the contents of the published config file:

```
return [
	'enable' => env('REQUEST_LOG_ENABLE', true),
	'json_mode' => env('REQUEST_LOG_JSON_MODE', false),
	'log_file' => env('REQUEST_LOG_FILE', storage_path('/logs/requests.log')),
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-request-log-views"
```

Usage
-----

[](#usage)

The package creates a custom logging channel called requests, you can overwrite it's settings by adding a `requests` channel to config/logging.php in your Laravel project.

Add `BuckhamDuffy\LaravelRequestLog\Middleware\RequestLogMiddleware::class` to the `web`and `api` middleware groups in `app/Http/Kernel.php`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Aaron Florey](https://github.com/aaronflorey)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdee3bef55bb13a185bf9c93506c503663bfda63628214782d56f2f8830c35e5?d=identicon)[Mochaka](/maintainers/Mochaka)

---

Top Contributors

[![aaronflorey](https://avatars.githubusercontent.com/u/948073?v=4)](https://github.com/aaronflorey "aaronflorey (2 commits)")

---

Tags

laravelbuckhamduffylaravel-request-log

### Embed Badge

![Health badge](/badges/buckhamduffy-laravel-request-log/health.svg)

```
[![Health](https://phpackages.com/badges/buckhamduffy-laravel-request-log/health.svg)](https://phpackages.com/packages/buckhamduffy-laravel-request-log)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

142347.8k](/packages/keepsuit-laravel-opentelemetry)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[tapp/filament-maillog

Filament plugin to view outgoing mail

2952.6k1](/packages/tapp-filament-maillog)

PHPackages © 2026

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