Add ignored_models as config option (#890)

* Add ignored_models as config option

* Add README.md entry

* Add tests

* Change name of test class

* Add Ignored to the return values from the mocked filesystem

* Improve test speed by adding prestissimo

* Revert "Improve test speed by adding prestissimo"

This reverts commit 246a9f2a78.
This commit is contained in:
Pataar
2020-03-10 12:18:29 +01:00
committed by GitHub
parent 90437012b8
commit 0692626c41
6 changed files with 125 additions and 2 deletions
+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)) {