Version: v0.8.0 - Beta.  We welcome contributors & feedback.

Input.hasField

Input.hasField($method, $fieldName) -> boolean

Description

Check whether the input field exists in the current request.

$method can be get or post.

// URL: /profile?userId=123

Input.hasField('get', 'userID')
//= true

Input.hasField('get', 'filterBy')
//= false

See Also