From d27a0621e2000c8008733f553f67e6bb5320cf97 Mon Sep 17 00:00:00 2001 From: Franky So Date: Fri, 27 Dec 2019 09:55:15 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Transeloquent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Transeloquent.php b/src/Transeloquent.php index 2263239..d56f9c0 100644 --- a/src/Transeloquent.php +++ b/src/Transeloquent.php @@ -22,7 +22,7 @@ trait Transeloquent * @var array */ protected $transeloquent = [ - 'attributes' => [], + 'attributes' => [], 'translations' => [], ]; @@ -53,6 +53,7 @@ public static function bootTranseloquent(): void public function attributesToArray() { $attributes = parent::attributesToArray(); + return array_merge(collect($this->transeloquent['attributes'])->toArray(), $attributes); }