diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphTo.php b/src/Illuminate/Database/Eloquent/Relations/MorphTo.php index e3257ad2678e..e25b3f52182f 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphTo.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphTo.php @@ -223,6 +223,22 @@ public function dissociate() return $this->parent->setRelation($this->relation, null); } + /** + * Remove all or passed registered global scopes. + * + * @param array|null $scopes + * @return $this + */ + public function withoutGlobalScopes(array $scopes = null) + { + $this->macroBuffer[] = [ + 'method' => __FUNCTION__, + 'parameters' => [$scopes], + ]; + + return $this; + } + /** * Get the foreign key "type" name. * @@ -243,22 +259,6 @@ public function getDictionary() return $this->dictionary; } - /** - * Remove all or passed registered global scopes. - * - * @param array|null $scopes - * @return $this - */ - public function withoutGlobalScopes(array $scopes = null) - { - $this->macroBuffer[] = [ - 'method' => __FUNCTION__, - 'parameters' => [$scopes], - ]; - - return $this; - } - /** * Replay stored macro calls on the actual related instance. *