//获取请求地址 \app\controller\Index\Console\IndexController@index
// $rule_name = $request->rule()->getRoute();
$rule_name = $request->rule();
// dd($request->rule());
//dd($rule_name);
//放行的地址
$allow_name = [
//'\app\controller\Index\Article@save',
//'\app\controller\Index\Article@upfile',
//'\app\controller\Index\Article@linktoimgurl',
];
if (in_array($rule_name, $allow_name)) {
return $next($request);
}