mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Merge pull request #32 from claar/patch-1
Use camel case for model scope generation
This commit is contained in:
@@ -232,7 +232,7 @@ class ModelsCommand extends Command {
|
||||
}
|
||||
}elseif(\Str::startsWith($method, 'scope') && $method !== 'scopeQuery'){
|
||||
//Magic set<name>Attribute
|
||||
$name = \Str::snake(substr($method, 5));
|
||||
$name = \Str::camel(substr($method, 5));
|
||||
if(!empty($name)){
|
||||
$reflection = new \ReflectionMethod($model, $method);
|
||||
$args = $this->getParameters($reflection);
|
||||
|
||||
Reference in New Issue
Block a user