laravel 中间件中添加参数

$request->merge(['key' => 'value']);
原文地址:https://www.cnblogs.com/zwsblogs/p/12668283.html