imi / laravel-request-logger
Log requests to database for Laravel 5 Projects
Installs: 5 210
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 10
Forks: 2
Open Issues: 4
Requires
README
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.