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'),