From 1d3a98f0e581e16e16d7f1a4c17f12fd4b30395b Mon Sep 17 00:00:00 2001 From: Malikin Sergey Date: Sun, 29 Mar 2015 13:30:50 +0300 Subject: [PATCH] Add Query\Builder return type to magic scope* methods --- 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 a56865d..5abc256 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -303,7 +303,7 @@ class ModelsCommand extends Command $args = $this->getParameters($reflection); //Remove the first ($query) argument array_shift($args); - $this->setMethod($name, '\\' . $reflection->class, $args); + $this->setMethod($name, '\Illuminate\Database\Query\Builder|\\' . $reflection->class, $args); } } elseif (!method_exists('Eloquent', $method) && !Str::startsWith($method, 'get')) {