Note for \Eloquent (#515)

https://github.com/barryvdh/laravel-ide-helper/issues/514
This commit is contained in:
Victor Isadov
2017-06-06 16:18:54 +02:00
committed by Barry vd. Heuvel
parent 5eeda63958
commit 35d954fc39
+6
View File
@@ -151,6 +151,12 @@ php artisan ide-helper:models --ignore="Post,User"
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
```php
/** @mixin \Eloquent */
```
for your model class.
### Automatic phpDocs generation for Laravel Fluent methods
If you need phpDocs support for Fluent methods in migration, for example
```php