diff --git a/src/Barryvdh/LaravelIdeHelper/ModelsCommand.php b/src/Barryvdh/LaravelIdeHelper/ModelsCommand.php index dd20654..4393df2 100644 --- a/src/Barryvdh/LaravelIdeHelper/ModelsCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/ModelsCommand.php @@ -242,7 +242,7 @@ class ModelsCommand extends Command { $methods = get_class_methods($model); if($methods){ foreach($methods as $method){ - if(\Str::startsWith($method, 'get') && \Str::endsWith($method, 'Attribute') && $method !== 'setAttribute'){ + if(\Str::startsWith($method, 'get') && \Str::endsWith($method, 'Attribute') && $method !== 'getAttribute'){ //Magic getAttribute $name = \Str::snake(substr($method, 3, -9)); if(!empty($name)){