fix validate error
This commit is contained in:
@@ -334,6 +334,6 @@ class Validate
|
||||
*/
|
||||
public function required(): bool
|
||||
{
|
||||
return !empty($this->data[$this->key]);
|
||||
return array_key_exists($this->key, $this->data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user