Download the PHP package johnwilhite/laravel-flare-scrubber without Composer
On this page you can find all versions of the php package johnwilhite/laravel-flare-scrubber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download johnwilhite/laravel-flare-scrubber
More information about johnwilhite/laravel-flare-scrubber
Files in johnwilhite/laravel-flare-scrubber
Package laravel-flare-scrubber
Short Description Request Data Scrubber for Laravel Flare Reporting
License MIT
Informations about the package laravel-flare-scrubber
This is handled natively by Flare now
https://flareapp.io/blog/18-how-to-censor-sensitive-information-in-requests-to-flare
Though this package will recursively search requests for keys, which may be an improvement depending on the usecase.
Request Data Scrubber for Laravel Flare Reporting
Flare doesn't seem to provide any documentation on scrubbing sensitive data from requests before sending over errors. This package is a simple service provider that allows a config to define what data should be sanitized.
Installation
Usage
If you don't already have one, create a config/flare.php
file and define a sensitive_data
array.
Before sending your data to flare, this provider will recursively search the request data and sanitize the values of any match. Key matches can apply to entire arrays as well. There are 3 options that can be used optionally and interchangeably:
-
keys
An exact match to the key name. -
key_regex
A regex pattern to match a key. value_regex
A regex pattern to match a value.
Additionally, you may define the sanitized value text at flare.sensitive_data.sanitization_text
. The default is ***SANITIZED***
.
License
MIT