mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Add currency controls to API
This commit is contained in:
@@ -37,6 +37,13 @@ class Request extends FormRequest
|
||||
*/
|
||||
public function boolean(string $field): bool
|
||||
{
|
||||
if ((string)$this->input($field) === 'true') {
|
||||
return true;
|
||||
}
|
||||
if ((string)$this->input($field) === 'false') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return 1 === (int)$this->input($field);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user