Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,18 @@ If you would like to determine if a value is present on the request and is not a
// ...
}

If you would like to determine if a value is missing from the request or is an empty string, you may use the `isNotFilled` method:

if ($request->isNotFilled('name')) {
// ...
}

When given an array, the `isNotFilled` method will determine if all of the specified values are missing or empty:

if ($request->isNotFilled(['name', 'email'])) {
// ...
}

The `anyFilled` method returns `true` if any of the specified values is not an empty string:

if ($request->anyFilled(['name', 'email'])) {
Expand Down