fix problem where empty string is not recognized as get value
This commit is contained in:
parent
4d08434d31
commit
2b834ba7f1
|
@ -82,9 +82,9 @@ class Request
|
|||
*/
|
||||
public function has($key)
|
||||
{
|
||||
$value = $this->input($key);
|
||||
$data = $this->request + $this->query;
|
||||
|
||||
return !(empty($value) && strlen($value) == 0);
|
||||
return isset($data[$key]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue