Update requests to use uniform methods.

This commit is contained in:
James Cole
2017-01-20 19:49:35 +01:00
parent 6b57d4397a
commit 8635fe7ebb
12 changed files with 64 additions and 67 deletions

View File

@@ -38,7 +38,7 @@ class PiggyBankFormRequest extends Request
public function getPiggyBankData(): array
{
return [
'name' => trim($this->get('name')),
'name' => $this->getFieldOrEmptyString('name'),
'startdate' => new Carbon,
'account_id' => intval($this->get('account_id')),
'targetamount' => round($this->get('targetamount'), 12),