{"repo":"spatie/laravel-http-logger","free":true,"listed":false,"github":"https://github.com/spatie/laravel-http-logger","clone":"git clone https://github.com/spatie/laravel-http-logger.git","description":"Log HTTP requests in Laravel applications","language":"PHP","stars":674,"topics":["laravel","php","http","logging"],"license":"MIT","category":"analytics","readme_excerpt":"Log HTTP requests This package adds a middleware which can log incoming requests to the default log. If anything goes wrong during a user's request, you'll still be able to access the original request data sent by that user. This log acts as an extra safety net for critical user submissions, such as forms that generate leads. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: Optionally you can publish the config file with: This is the contents of the published config file: Usage This packages provides a middleware which can be added as a global middleware or as a single route. Laravel = 11: Laravel <= 10: Logging Two classes are used to handle the logging of incoming requests: a LogProfile class will determine whether the request should be logged, and LogWriter class will write the request to a log. A default log implementation is added within this package. It will only log POST , PUT , PATCH , DELETE , and QUERY requests and it will write to the default Laravel logger. Logging is enabled by default but can be toggled on or off via the HTTP LOGGER ENABLED variable in the .env file. You're free to implement ","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-http-logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}