isPermission($key) ) { return $next($request); } return redirect('/home'); } }