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