-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hello,
I have a model that I use a custom collection with, to do some aggregations and such. Currently, I have to set my return typehint to \Illuminate\Database\Eloquent\Collection instead of my custom collection, because of:
| public function newCollection(array $models = []): Collection |
Not a deal-breaker, as I can use the phpdoc to tell my IDE what the real return type is. However, with me overwriting the newCollection method, what does that do to autoloading for this model? As far as I can tell, the only important line is 145, but I don't know what it does exactly...
Are there some side-effects I am not aware of with using my own custom collection with your package?
Metadata
Metadata
Assignees
Labels
No labels