class Illuminate / Support / ValidatedInput
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ValidatedInput

Implements

Properties

protected

$input array

The underlying input.

Default: null

Methods

public

__construct ( array $input ) : void

Create a new validated input container.

Parameters

  • $input array
public

has ( $keys ) : bool

Determine if the validated input has one or more keys.

Parameters

  • $keys mixed
public

missing ( $keys ) : bool

Determine if the validated input is missing one or more keys.

Parameters

  • $keys mixed
public

only ( $keys ) : array

Get a subset containing the provided keys with values from the input data.

Parameters

  • $keys mixed
public

except ( $keys ) : array

Get all of the input except for a specified array of items.

Parameters

  • $keys mixed
public

merge ( array $items ) : static

Merge the validated input with the given array of additional data.

Parameters

  • $items array
public

collect ( ) : Illuminate\...\Collection

Get the input as a collection.

public

all ( ) : array

Get the raw, underlying input array.

public

toArray ( ) : array

Get the instance as an array.

public

__get ( $name ) : mixed

Dynamically access input data.

Parameters

  • $name string
public

__set ( $name , $value ) : mixed

Dynamically set input data.

Parameters

  • $name string
  • $value mixed
public

__isset ( $name ) : bool

Determine if an input key is set.

public

__unset ( $name ) : void

Remove an input key.

Parameters

  • $name string
public

offsetExists ( $key ) : bool

Determine if an item exists at an offset.

Parameters

  • $key mixed
public

offsetGet ( $key ) : mixed

Get an item at a given offset.

Parameters

  • $key mixed
public

offsetSet ( $key , $value ) : void

Set the item at a given offset.

Parameters

  • $key mixed
  • $value mixed
public

offsetUnset ( $key ) : void

Unset the item at a given offset.

Parameters

  • $key string
public

getIterator ( ) : ArrayIterator

Get an iterator for the input.