Skip to content

Commit

Permalink
add exists as alias to has
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 7, 2017
1 parent 2d22de0 commit 183bf16
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Http/Concerns/InteractsWithInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ public function bearerToken()
}
}

/**
* Determine if the request contains a given input item key.
*
* @param string|array $key
* @return bool
*/
public function exists($key)
{
return $this->has($key);
}

/**
* Determine if the request contains a given input item key.
*
Expand Down

0 comments on commit 183bf16

Please sign in to comment.