Add ignored_models as config option

This commit is contained in:
pataar
2020-02-13 13:28:47 +01:00
parent 68d3d19298
commit 75c93322ae
2 changed files with 17 additions and 2 deletions
+13 -1
View File
@@ -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(
),
/*
|--------------------------------------------------------------------------
+4 -1
View File
@@ -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)) {