From 6c48499072a090aa23b95a2adaabd66b1b874b35 Mon Sep 17 00:00:00 2001 From: pataar Date: Thu, 13 Feb 2020 13:32:23 +0100 Subject: [PATCH] Add README.md entry --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index 704d10c..5fec144 100644 --- a/readme.md +++ b/readme.md @@ -149,6 +149,14 @@ Models can be ignored using the `--ignore (-I)` option php artisan ide-helper:models --ignore="Post,User" ``` +Or can be ignored by setting the `ignored_models` config +```php +'ignored_models' => array( + Post::class, + Api\User::class +), +``` + Note: With namespaces, wrap your model name in double-quotes (`"`): `php artisan ide-helper:models "API\User"`, or escape the slashes (`Api\\User`) For properly recognition of `Model` methods (i.e. `paginate`, `findOrFail`) you should extend `\Eloquent` or add