You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//middleware伪代码
public function handle(Request $request, Closure $next): mixed
{
$request->param();
}
//controller伪代码
public function index(Request $request)
{
dump($request->param());//输出array中会多出s参数
}
The text was updated successfully, but these errors were encountered:
在middleware中执行$request->param()后,后续在controller中执行dump($request->param())会导致"s" => "/ab/123"进入入参数组.
The text was updated successfully, but these errors were encountered: