Download the PHP package imi/laravel-request-logger without Composer
On this page you can find all versions of the php package imi/laravel-request-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imi/laravel-request-logger
More information about imi/laravel-request-logger
Files in imi/laravel-request-logger
Package laravel-request-logger
Short Description Log requests to database for Laravel 5 Projects
License GPL-2.0-or-later
Informations about the package laravel-request-logger
Logs Requests for Laravel Projects
This module logs requests for following data to a database table.
- method
- path
- ip
- session
- get
- post
- cookies
- agent
It is possible to exclude certain private fields through configuration (contributed by @AgelxNash). By default, all session cookies and xsrf tokens are excluded from being logged.
Installation
- Install
imi/laravel-request-logger
via composer with this command:composer require imi/laravel-request-logger -W
- Optional - if your Laravel version does not yet support autodiscovery: Insert
iMi\LaravelRequestLogger\RequestLoggerServiceProvider::class
into providers in your config/app.php - Use the middleware 'request-logger' => 'iMi\LaravelRequestLogger\LogRequest::class' for routes/route groups. If you want to log all requests insert
iMi\LaravelRequestLogger\LogRequest::class
into middleware in your app/Http/Kernel.php, but not in routeMiddleware. - Call
php artisan migrate
Similar Modules
About Us
iMi digital GmbH offers Laravel related open source modules. If you are confronted with any bugs, you may want to open an issue here.
In need of support or an implementation of a modul in an existing system, free to contact us. In this case, we will provide full service support for a fee.
Of course we provide development of closed-source modules as well.