From 46558e90604c2461b11a155fde21eac82d5a56d3 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 21 Feb 2014 11:28:59 +0100 Subject: [PATCH] Typo in method name check Fixes #62 --- src/Barryvdh/LaravelIdeHelper/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)){