Can Vural

Results 135 comments of Can Vural

This should be now fixed in a different way in the latest commits.

Hi, Yes, there is no support for that now. Until it gets implemented you can try to use `filter` instead if possible.

What is the real return type if you do something like `dd($this->category->quizzes()->cursor()`? Should be `\Illuminate\Support\LazyCollection` I guess?

Looks like for Laravel 6 it was generator. But when lazy collections is introduced, return type became `LazyCollection` We can modify the stub so that it returns `LazyCollection` But that...

Hi, Can you explain how `Auth::user()` would return non-default user model? [Looks like](https://github.com/laravel/framework/blob/9.x/src/Illuminate/Auth/AuthManager.php#L64) it chooses the default guard if you don't pass any guard name.

Hi, I cannot reproduce `Call to private method whereBetween() of parent class ...` error on the example repo. About the other errors; - Errors like `Method App\Models\Node::newCollection() should return App\Database\NodeCollection...

> BTW, I wonder why > > https://github.com/nunomaduro/larastan/blob/4cbe40866c2c86bbd27f2424ab735ac6ad10338c/src/Methods/BuilderHelper.php#L201 > > uses `getNativeMethod` on the reflection of the model class. Again, my gut feeling tells me that it should be `getMethod`....

> Yes, this is the only error which also remains for the branch full_example. It would be nice to get a fix for that. Fixed in #1299

@ingageco Larastan does not make a db connection to know your columns. It scans the migrations folder, or the squashed migrations. So the change needs to be in either of...

Please try `master` branch. #1319 is merged.