Closed nicholaszuccarelli closed 4 weeks ago
Thanks feedback!
Yeah, it seems to have problem on the laravel-11, I will fix it later.
The issue fixed with package v4.0.1, then I will close it.
If you meet others problems, welcome feedback!
Thank you so much for the speedy fix. Love the package btw.
I'm having trouble getting the package working with Laravel 11 We recently did a Laravel 9 => 10 upgrade and the package worked fine, however with Laravel 11, some of my queries are failing with
Illuminate\Database\Eloquent\Relations\HasOneThrough must be a relationship instance
As an example, I have a
Company
,Billable
andSubscription
model.Company
has ahasOneThrough
relationship as such:I then attempt to get the total companies who are subscribed using:
$totalCompaniesSubscribed = Company::whereHasIn('subscription')->count()
This line^ produces the error.If I change the line to instead use the traditional
::whereHas('subscription')
it works, but as we know that can have performance degradation.