rawphp / laravel-communication-logger by rawphp

Communication logger for Laravel PHP applications.
37
0
1
Package Data
Maintainer Username: rawphp
Maintainer Contact: tom@crazydev.org (Tom Kaczocha)
Package Create Date: 2016-07-22
Package Last Update: 2016-07-24
Language: PHP
License: MIT
Last Refreshed: 2024-11-24 15:05:43
Package Statistics
Total Downloads: 37
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel Communication Provider

Build Status

1. Install

As always, we need to pull in some dependencies through Composer.

composer require rawphp/laravel-communication-logger

2. Register Provider

RawPHP\LaravelCommunicationLogger\CommunicationLoggerProvider::class,

3. Register Middleware

Add the CommunicationLog middleware to the Kernel middleware array. This allows all requests and responses to be logged.

/**
 * The application's route middleware groups.
 *
 * @var array
 */
protected $middlewareGroups = [
        CommunicationsLog::class,
    ],
];

3. Publish Config

php artisan vendor:publish --provider="RawPHP\LaravelCommunicationLogger\CommunicationLoggerProvider"