Looking to hire Laravel developers? Try LaraJobs

laravel-communication-logger maintained by rawphp

Description
Communication logger for Laravel PHP applications.
Author
Last update
2016/07/24 09:06 (dev-master)
License
Links
Downloads
37

Comments
comments powered by Disqus

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"