diff --git a/config/ide-helper.php b/config/ide-helper.php index 374eacb..7748139 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -13,7 +13,7 @@ return array( 'filename' => '_ide_helper', 'format' => 'php', - + 'meta_filename' => '.phpstorm.meta.php', /* @@ -95,6 +95,18 @@ return array( 'app', ), + /* + |-------------------------------------------------------------------------- + | Models to ignore + |-------------------------------------------------------------------------- + | + | Define which models should be ignored. + | + */ + + 'ignored_models' => array( + + ), /* |-------------------------------------------------------------------------- diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 2b0622b..a23a6bd 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -185,7 +185,10 @@ class ModelsCommand extends Command } } - $ignore = explode(',', $ignore); + $ignore = array_merge( + explode(',', $ignore), + $this->laravel['config']->get('ide-helper.ignored_models', array()) + ); foreach ($models as $name) { if (in_array($name, $ignore)) {