We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, $gump->run($data) returns $data, which is redundant, and would return unwanted keys.
$gump->run($data)
$data
As this might be useful though in some cases that I don't know about, I suggest a new method to only get valid data.
$gump->validation_rules(['title' => 'required']); $gump->run(['title' => 'Sample title', 'content' => 'Sample content']); $validData = $gump->validData(); // ['title' => 'Sample title']
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Feature request
Currently,
$gump->run($data)
returns$data
, which is redundant, and would return unwanted keys.As this might be useful though in some cases that I don't know about, I suggest a new method to only get valid data.
Example
The text was updated successfully, but these errors were encountered: