ValidatePostSize

class ValidatePostSize (View source)

Methods

mixed handle(Request $request, Closure $next)

Handle an incoming request.

int getPostMaxSize()

Determine the server 'post_max_size' as bytes.

Details

mixed handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

mixed

Exceptions

PostTooLargeException

protected int getPostMaxSize()

Determine the server 'post_max_size' as bytes.

Return Value

int

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Foundation/Http/Middleware/ValidatePostSize.html