Add --dir option to readme

As described in #18
This commit is contained in:
Barry vd. Heuvel
2013-07-29 16:32:40 +02:00
parent c1619fd6b3
commit 742aeb2f56
+5 -1
View File
@@ -73,10 +73,14 @@ With the `--reset (-R)` option, the existing phpdocs are ignored, only the newly
* @property-read \Illuminate\Database\Eloquent\Collection|\Comment[] $comments * @property-read \Illuminate\Database\Eloquent\Collection|\Comment[] $comments
*/ */
For now, only models in app/models are scanned. The optional argument tells what models to use (also outside app/models). By default, models in app/models are scanned. The optional argument tells what models to use (also outside app/models).
php artisan ide-helper:models Post,User php artisan ide-helper:models Post,User
You can also scan a different directory, using the --dir option (relative from the base path):
php artisan ide-helper:models --dir="app/workbench/name/package/models"
Note: With namespaces, uses `\\` instead of `\`: `php artisan ide-helper:models API\\User` Note: With namespaces, uses `\\` instead of `\`: `php artisan ide-helper:models API\\User`
### License ### License