Skip to content

Commit 0557ba9

Browse files
committed
Document that model_locations/dir now supports glob
Feature was added with barryvdh#921
1 parent 5f677ed commit 0557ba9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/ide-helper.php

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
| Define in which directories the ide-helper:models command should look
9090
| for models.
9191
|
92+
| glob patterns are supported to easier reach models in sub-directories,
93+
| e.g. `app/Services/* /Models` (without the space)
94+
|
9295
*/
9396

9497
'model_locations' => array(

src/Console/ModelsCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ protected function getOptions()
152152
{
153153
return array(
154154
array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the helper file', $this->filename),
155-
array('dir', 'D', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The model dir', array()),
155+
array('dir', 'D', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
156+
'The model dir, supports glob patterns', array()),
156157
array('write', 'W', InputOption::VALUE_NONE, 'Write to Model file'),
157158
array('nowrite', 'N', InputOption::VALUE_NONE, 'Don\'t write to Model file'),
158159
array('reset', 'R', InputOption::VALUE_NONE, 'Remove the original phpdocs instead of appending'),

0 commit comments

Comments
 (0)