Skip to content
Discussion options

You must be logged in to vote

As of the next version of Phactor (i.e. the current master branch) you can avoid this issue through the use of additive stubs. So assuming you use the Laravel IDE helper package you can add those generated files as "additive stubs" and id() will no longer be unrecognised.

Alternatively you can already, II believe, add /** @method int id() */ annotations to your model class or use @mixin

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by manusiakemos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants