jonathan-martz/lumen-middelware-xss

Php Lumen Middelware Xss

0.1.1 2020-01-03 19:38 UTC

README

Installations

add to routes/web.php

$router->post('/user/todo/select', [
	'middleware' => 'xss',
	'uses' => 'TodoController@select'
]);

add to bootstrap/app.php

$app->middleware([
     App\Http\Middleware\Xss::class
]);

$app->routeMiddleware([
    'xss' => App\Http\Middleware\Xss::class,
]);