diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index e91822a..b2384e2 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -377,6 +377,7 @@ class ModelsCommand extends Command { $methods = get_class_methods($model); if ($methods) { + sort($methods); foreach ($methods as $method) { if (Str::startsWith($method, 'get') && Str::endsWith( $method, @@ -569,6 +570,8 @@ class ModelsCommand extends Command $phpdoc->appendTag($tag); } + ksort($this->methods); + foreach ($this->methods as $name => $method) { if (in_array($name, $methods)) { continue;