Alexmg86/laravel-sub-query

Laravel 8.26 Incompatibility issue with Eloquent\Model

ellalderton opened this issue · 5 comments

Updated to Laravel 8.26.1 and I'm getting incompatibility issue with Eloquent\Model.

Declaration of Alexmg86\LaravelSubQuery\Traits\LaravelSubQueryTrait::loadSum($relations) should be compatible with Illuminate\Database\Eloquent\Model::loadSum($relations, $column)

Hi! this method nice working with Laravel version <8, because in new version 8.* already has this method

That's great, thanks for your help.

@Alexmg86 How do you get around this error? I'd prefer to use LaravelSubQuery's version since it allows for more options.

@joecip Hi!
can you update package to v 1.9.8? it's must be working now :)

@joecip Hi!
can you update package to v 1.9.8? it's must be working now :)

Awesome. Thanks!