-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding @method docblocks on the Eloquent/Model.php #269
Comments
wow, I never thought that this many functions were excluded... Though I think it would be best that someone adds a PR of it rather than requesting the authors as its low on their priority list. |
Why don't you do it with |
I didn't use |
Any way it was better for
on the models. |
A workaround is to have all your models extend a base class which itself extends |
It's help author to close many issues! ) Like: barryvdh#269, barryvdh#259, barryvdh#248, barryvdh#209, barryvdh#191, barryvdh#74, and laravel/framework#7558 ))) etc. maybe
Does anyone knows why Taylor don't add those methods and properties in the laravel source ? |
@adaojunior I saw his answer, that he doesn't like IDE mess in code. |
@barryvdh another issue which was solved some time ago due to |
Hi,
I am using your great package and I see that there is no auto-completion for my models if I do not extend the \Eloquent class in the _ide_helper.php. It makes a dependency on the file which should be removed before pushing to production.
Another way of providing the auto-completion is to add the proper docblocks on the Eloquent/Model.php before the class definition.
see offical Documentation :
http://www.phpdoc.org/docs/latest/references/phpdoc/tags/method.html#examples
Here is a sample which I use for my own project.
The text was updated successfully, but these errors were encountered: