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
{ "data": { "id": "42", "type": "article", "attributes": { "useful": false } } }
Using bypass
/** * Override patch, to "hack" boolean behaviour * @param mixed $id * @param object $attributes * @return int */ public static function patch($id, $attributes) { if (isset($attributes['useful']) && $attributes['useful'] === false) { $attributes['useful'] = 0; } return parent::patch($id, $attributes); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using bypass
The text was updated successfully, but these errors were encountered: