hasPermissionTo($permission)) { return $next($request); } throw UnauthorizedException::forPermissions([$permission]); } }