Can Vural

Results 132 comments of Can Vural

@edwinvdpol No, it's not about a rule. There needs to be an addition in `ModelRelationsExtension` If you are interested you can make a PR! You can take a look at...

@spawnia The magic `_count` property is only available if you loaded the count before, with `withCount('relation')` method. But under the hood, I guess they are doing similar things.

> The problem is that you can alias this property to anything you want, just by doing: Yeah, we can't detect this. In that case, it's better if the user...

@MatanYadaev That is not possible and doable. You can add `/** @property int $posts_count */` above your `User` class.

Hi, Can you explain how `$this->user()` would return `AnotherUser` if default guard is configured to return `DefaultUser`?

What about `PredisConnection`? Are the method signatures same?

This is one of the stuff that I don't like in Laravel. There is a `ConnectionInterface` but the classes that implement that interface can define their own public methods 🤷...

Hi, Yes, Larastan scans your migration files to understand your model columns :blush: And if the column is defined with `$table->boolean(..)` it treats the value as boolean when reading data...

If you want to override this, you can add a doc block above your class, specifying the type of `is_consumer` For example ```php /** * @property int $is_consumer */ class...