This package allows you to use Expose in Laravel with support for caching ad queuing.
First grab a copy with composer
$ composer require scollins/laravel-expose
You can also manually add it to your composer.json and run composer update
{
"require": {
"scollins/laravel-expose": "^1.0"
}
}
Add the service provider to your config\app.php file
SCollins\LaravelExpose\ExposeServiceProvider::classAdd the facade
'Expose' => SCollins\LaravelExpose\Facades\Expose::classAdd the Middleware to your kernel.php
\SCollins\LaravelExpose\Middleware\Expose::classIt should now run on any requests with input and add the Job to your queue. While your queue is running it will analyse the requests and log any high values.
It uses the Cache to store the requests which could contain sensitive information, use the ignore config option to exclude this.
Laravel Expose is licensed under The MIT License (MIT).