📅  最后修改于: 2022-03-11 14:53:57.595000             🧑  作者: Mango
public function handle($request, Closure $next, $level)
{
$user = Auth::user();
if ($user->level > $level) {
return redirect('testUrl');
}
return $next($request);
}