mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user