mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Update ModelsCommand.php
Fix for #61 - also returns query builder instance
This commit is contained in:
@@ -237,7 +237,7 @@ class ModelsCommand extends Command {
|
|||||||
|
|
||||||
|
|
||||||
$this->setProperty($name, $type, true, true);
|
$this->setProperty($name, $type, true, true);
|
||||||
$this->setMethod(Str::camel("where_".$name), '\\'.get_class($model), array('$value'));
|
$this->setMethod(Str::camel("where_".$name), '\Illuminate\Database\Query\Builder|\\'.get_class($model), array('$value'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user