Merge pull request #33 from claar/patch-2

Include return value when generating scope methods
This commit is contained in:
Barry vd. Heuvel
2013-08-25 06:30:45 -07:00
@@ -238,7 +238,7 @@ class ModelsCommand extends Command {
$args = $this->getParameters($reflection); $args = $this->getParameters($reflection);
//Remove the first ($query) argument //Remove the first ($query) argument
array_shift($args); array_shift($args);
$this->setMethod($name, 'static', $args); $this->setMethod($name, "static " . $reflection->class, $args);
} }
}elseif(!method_exists('Eloquent', $method) && !\Str::startsWith($method, 'get')){ }elseif(!method_exists('Eloquent', $method) && !\Str::startsWith($method, 'get')){