From 807389696576faa6cd831b72066d486d329bc1a3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 16 Feb 2018 16:57:35 +0100 Subject: [PATCH] Add request data for tags. --- app/Api/V1/Requests/TransactionRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Api/V1/Requests/TransactionRequest.php b/app/Api/V1/Requests/TransactionRequest.php index d7dad26783..a1e1230a5d 100644 --- a/app/Api/V1/Requests/TransactionRequest.php +++ b/app/Api/V1/Requests/TransactionRequest.php @@ -59,6 +59,7 @@ class TransactionRequest extends Request 'piggy_bank_name' => $this->string('piggy_bank_name'), 'bill_id' => $this->integer('bill_id'), 'bill_name' => $this->string('bill_name'), + 'tags' => explode(',', $this->string('tags')), // then, custom fields for journal 'interest_date' => $this->date('interest_date'), @@ -114,6 +115,7 @@ class TransactionRequest extends Request 'piggy_bank_name' => ['between:1,255', 'nullable', new BelongsUser], 'bill_id' => ['numeric', 'nullable', 'mustExist:bills,id', new BelongsUser], 'bill_name' => ['between:1,255', 'nullable', new BelongsUser], + 'tags' => 'between:1,255', // then, custom fields for journal 'interest_date' => 'date|nullable',