mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-21 11:33:11 +00:00
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:
@@ -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`
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user