Eloquent Model save method undefined on object #1968
-
I have this simple code:
phpstan is complaining:
It's quite strange that I am getting those error.
|
Beta Was this translation helpful? Give feedback.
Answered by
canvural
Jun 8, 2024
Replies: 2 comments
-
Your model parameter is typed as query builder not Eloquent builder. I'm guessing that's the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
szepeviktor
-
🤦♂️ thank you very much |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your model parameter is typed as query builder not Eloquent builder. I'm guessing that's the issue.