5.4后laravel构造函数获取中间件后的参数
2019-02-08 本文已影响0人
空气KQ
$this->middleware(function($request,Closure $next){
$this->user = Auth::user();
return $next($request);
});
$this->middleware(function($request,Closure $next){
$this->user = Auth::user();
return $next($request);
});