From 742aeb2f5683a659a3241599bbc100de9cbf370d Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 29 Jul 2013 16:32:40 +0200 Subject: [PATCH] Add --dir option to readme As described in #18 --- readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b00afe4..8eb3f46 100644 --- a/readme.md +++ b/readme.md @@ -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 */ -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 +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` ### License