diff --git a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php index 66a926e..8f4a78a 100755 --- a/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php +++ b/src/Barryvdh/LaravelIdeHelper/GeneratorCommand.php @@ -178,8 +178,8 @@ exit('Only to be used as an helper for your IDE');\n\n"; } //Include the helper file, if requested - if(!empty($helpers)){ - foreach($helpers as $helper){ + if(!empty($this->helpers)){ + foreach($this->helpers as $helper){ if (file_exists($helper)){ $output .= str_replace(array(''), '', \File::get($helper)); }