ValidatedInput
class ValidatedInput implements ValidatedData (View source)
Properties
protected array | $input | The underlying input. |
Methods
Create a new validated input container.
Get a subset containing the provided keys with values from the input data.
Get all of the input except for a specified array of items.
Merge the validated input with the given array of additional data.
Get the input as a collection.
Get the raw, underlying input array.
Get the instance as an array.
Dynamically access input data.
Dynamically set input data.
Determine if an input key is set.
Remove an input key.
Determine if an item exists at an offset.
Get an item at a given offset.
Set the item at a given offset.
Unset the item at a given offset.
Get an iterator for the input.
Details
void
__construct(array $input)
Create a new validated input container.
array
only(array|mixed $keys)
Get a subset containing the provided keys with values from the input data.
array
except(array|mixed $keys)
Get all of the input except for a specified array of items.
ValidatedInput
merge(array $items)
Merge the validated input with the given array of additional data.
Collection
collect()
Get the input as a collection.
array
all()
Get the raw, underlying input array.
array
toArray()
Get the instance as an array.
mixed
__get(string $name)
Dynamically access input data.
mixed
__set(string $name, mixed $value)
Dynamically set input data.
bool
__isset($name)
Determine if an input key is set.
void
__unset(string $name)
Remove an input key.
bool
offsetExists(mixed $key)
Determine if an item exists at an offset.
mixed
offsetGet(mixed $key)
Get an item at a given offset.
void
offsetSet(mixed $key, mixed $value)
Set the item at a given offset.
void
offsetUnset(string $key)
Unset the item at a given offset.
ArrayIterator
getIterator()
Get an iterator for the input.