From b7197aec8982208083ef651edce440274d6eefb3 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Wed, 22 Apr 2020 21:20:09 +0200 Subject: [PATCH] Document that model_locations/dir now supports glob (#925) Feature was added with https://github.com/barryvdh/laravel-ide-helper/pull/921 --- config/ide-helper.php | 3 +++ src/Console/ModelsCommand.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/ide-helper.php b/config/ide-helper.php index 7748139..d127b5d 100644 --- a/config/ide-helper.php +++ b/config/ide-helper.php @@ -89,6 +89,9 @@ return array( | Define in which directories the ide-helper:models command should look | for models. | + | glob patterns are supported to easier reach models in sub-directories, + | e.g. `app/Services/* /Models` (without the space) + | */ 'model_locations' => array( diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index dbff6d5..86f9461 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -152,7 +152,8 @@ class ModelsCommand extends Command { return array( array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the helper file', $this->filename), - array('dir', 'D', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The model dir', array()), + array('dir', 'D', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, + 'The model dir, supports glob patterns', array()), array('write', 'W', InputOption::VALUE_NONE, 'Write to Model file'), array('nowrite', 'N', InputOption::VALUE_NONE, 'Don\'t write to Model file'), array('reset', 'R', InputOption::VALUE_NONE, 'Remove the original phpdocs instead of appending'),