From 91f668731ae1c18e14ce0e5b2e707f4a65dac850 Mon Sep 17 00:00:00 2001 From: a443939412 <443939412@qq.com> Date: Mon, 28 Sep 2020 12:34:47 +0800 Subject: [PATCH] There is no need to generate comments for query, newquery, newmodelquery static methods --- src/Console/ModelsCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index fad410754..9ecc1a879 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -551,14 +551,14 @@ protected function getPropertiesFromMethods($model) ); $this->setMethod($name, $builder . '|' . $modelName, $args); } - } elseif (in_array($method, ['query', 'newQuery', 'newModelQuery'])) { + }/* elseif (in_array($method, ['query', 'newQuery', 'newModelQuery'])) { $builder = $this->getClassNameInDestinationFile($model, get_class($model->newModelQuery())); $this->setMethod( $method, $builder . '|' . $this->getClassNameInDestinationFile($model, get_class($model)) ); - } elseif ( + } */elseif ( !method_exists('Illuminate\Database\Eloquent\Model', $method) && !Str::startsWith($method, 'get') ) {