From 83597196f9de73aa57caf76b830df239491e9a46 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 3 Mar 2016 09:43:49 +0100 Subject: [PATCH] Prevent double mixin tags --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index aa3bf46..607e448 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -490,7 +490,7 @@ class ModelsCommand extends Command $phpdoc->appendTag($tag); } - if ($this->write) { + if ($this->write && ! $phpdoc->getTagsByName('mixin')) { $phpdoc->appendTag(Tag::createInstance("@mixin \\Eloquent", $phpdoc)); }