PHPackages                             malvik-lab/laravel-http-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. malvik-lab/laravel-http-logger

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

malvik-lab/laravel-http-logger
==============================

Log every request and response of Laravel PHP Framework.

1.0.2(1y ago)040MITPHP

Since Jul 19Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Http Logger
===================

[](#laravel-http-logger)

Log every request and response of [Laravel PHP Framework](https://github.com/laravel/laravel).

The package saves all the data of the requests and responses in the "request\_log" table, but if you want you can use a custom adapter.

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

[](#installation)

```
$ composer require malvik-lab/laravel-http-logger

```

Publish config file
-------------------

[](#publish-config-file)

```
$ php artisan vendor:publish --tag=malviklab-laravel-http-logger-config

```

Publish migration file
----------------------

[](#publish-migration-file)

```
$ php artisan vendor:publish --tag=malviklab-laravel-http-logger-migrations

```

Run migration
-------------

[](#run-migration)

```
$ php artisan migrate

```

(Recommended) Use on Global Middleware
--------------------------------------

[](#recommended-use-on-global-middleware)

```
// app/Http/Kernel.php
protected $middleware = [
    \MalvikLab\LaravelHttpLogger\Http\Middleware\LaravelHttpLoggerMiddleware::class,
    // ...
];
```

(Alternative) Use on your routes
--------------------------------

[](#alternative-use-on-your-routes)

```
Route::middleware(['malviklab-laravel-http-logger'])->group(function () {
    // your routes here
});
```

Configuration
-------------

[](#configuration)

In the configuration file you can set any values present in the requests and responses to be hidden (eg password or access token), the word with which to hide and the adapter to be used for saving.

```
