Work on Model Docs

Use classmapper from composer and add some checks to make sure the class
exist.
Also, tweak argument/options and filename.
This commit is contained in:
Barry vd. Heuvel
2013-04-29 10:16:33 +02:00
parent 40d9dfd32c
commit 7160a37e49
3 changed files with 191 additions and 64 deletions
+2 -3
View File
@@ -46,8 +46,7 @@ If you don't want to write your properties yourself, you can use the (experiment
phpDocs, based on table columns, relations and getters/setters. Very alpha, so please provide feedback if you want.
Docs are written to a phpfile in the root of the project, so you can move the docs to the real model.
For now, only models in app/models are scanned, with the same name as the file (eg. app/models/user.php -> User).
With the -M option, you can generate just one model.
`php artisan ide-helper:models -M Post`
For now, only models in app/models are scanned. The optional argument tells what models to use.
`php artisan ide-helper:models Post,User`