From 6d178b440b2622ef34540423dd4aaad6da15ac86 Mon Sep 17 00:00:00 2001 From: Patrick O'Meara Date: Fri, 25 Oct 2024 20:19:55 +1100 Subject: [PATCH] [11.x] Provide an error message for PostTooLargeException --- src/Illuminate/Http/Middleware/ValidatePostSize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Http/Middleware/ValidatePostSize.php b/src/Illuminate/Http/Middleware/ValidatePostSize.php index bfa620a85f46..8b3519c92842 100644 --- a/src/Illuminate/Http/Middleware/ValidatePostSize.php +++ b/src/Illuminate/Http/Middleware/ValidatePostSize.php @@ -21,7 +21,7 @@ public function handle($request, Closure $next) $max = $this->getPostMaxSize(); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { - throw new PostTooLargeException; + throw new PostTooLargeException('The POST data is too large.'); } return $next($request);