📜  在路由组中间件中传递值 - Objective-C 代码示例

📅  最后修改于: 2022-03-11 15:04:45.144000             🧑  作者: Mango

代码示例2
public function handle($request, Closure $next, $level)
{
    $user = Auth::user();
    if ($user->level > $level) {
        return redirect('testUrl');
    }

    return $next($request);
}