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