From c3d4ba67ba3818b7f5d4580aedff9ced275d4385 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 14 May 2024 11:49:46 +1000 Subject: [PATCH] Minor --- src/Database/Relations/BelongsToMany.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Database/Relations/BelongsToMany.php b/src/Database/Relations/BelongsToMany.php index f8b29a3a5..eb6df149f 100644 --- a/src/Database/Relations/BelongsToMany.php +++ b/src/Database/Relations/BelongsToMany.php @@ -301,14 +301,10 @@ public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'p */ public function newPivot(array $attributes = [], $exists = false) { - /* - * October looks to the relationship parent - */ + // October looks to the relationship parent $pivot = $this->parent->newRelationPivot($this->relationName, $this->parent, $attributes, $this->table, $exists); - /* - * Laravel looks to the related model - */ + // Laravel looks to the related model if (empty($pivot)) { $pivot = $this->related->newPivot($this->parent, $attributes, $this->table, $exists, $this->using); }