diff --git a/src/Illuminate/Database/Eloquent/Relations/Pivot.php b/src/Illuminate/Database/Eloquent/Relations/Pivot.php index 1043c1ccd0cf..f430c83b1598 100755 --- a/src/Illuminate/Database/Eloquent/Relations/Pivot.php +++ b/src/Illuminate/Database/Eloquent/Relations/Pivot.php @@ -214,7 +214,9 @@ public function hasTimestampAttributes() */ public function getCreatedAtColumn() { - return ($this->pivotParent) ? $this->pivotParent->getCreatedAtColumn() : parent::getCreatedAtColumn(); + return ($this->pivotParent) + ? $this->pivotParent->getCreatedAtColumn() + : parent::getCreatedAtColumn(); } /** @@ -224,7 +226,9 @@ public function getCreatedAtColumn() */ public function getUpdatedAtColumn() { - return ($this->pivotParent) ? $this->pivotParent->getUpdatedAtColumn() : parent::getUpdatedAtColumn(); + return ($this->pivotParent) + ? $this->pivotParent->getUpdatedAtColumn() + : parent::getUpdatedAtColumn(); } /**