You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the IDE helper generates the property as AsEnumCollection. If I attempt to use $user->preferences->anyCollectionMethod() it returns an undefined method error.
Instead the IDE helper should at the minimum generate returning an Eloquent Collection instance.
After reading the code for a while, I found out that it is not supported yet (and AsCollection::using is not supported either). I'll be happy to create a PR for it when I have time :)
Summary
Here's my example casts method 'preferences':
Currently the IDE helper generates the property as
AsEnumCollection
. If I attempt to use$user->preferences->anyCollectionMethod()
it returns an undefined method error.Instead the IDE helper should at the minimum generate returning an Eloquent Collection instance.
The text was updated successfully, but these errors were encountered: