As you can see in the screenshot, there’s an error detected by Cursor IDE.
I specified the Model Contract as a type for a variable used in the function giveMeAContract.
But the problem is, at the function wtf() context,
the giveMeAContract() function seems to only want laravel query builder rather than a Model.
Problem is, the error message coming from the red underline says that you have to put a Model in it not the query builder. I think it’s exactly opposite of what I did.
Plus, it only happens when I eager load the collection.
Any hint for this? I solved it by a type hinting annotation but it is just temporary I guess.