Skip to content

Conversation

@mahmoudmohamedramadan
Copy link
Contributor

When I tried to use Illuminate\Database\Eloquent\Builder namespace I got Argument #1 ($query) must be of type Illuminate\Database\Eloquent\Builder, Illuminate\Database\Eloquent\Relations\HasMany given error, and when I used Illuminate\Contracts\Database\Eloquent\Builder namespace the issue was solved 🎉.

mahmoudmohamedramadan and others added 2 commits June 20, 2023 18:45
When I tried to use `Illuminate\Database\Eloquent\Builder` namespace I got **Argument #1 ($query) must be of type Illuminate\Database\Eloquent\Builder, Illuminate\Database\Eloquent\Relations\HasMany given** error, and when I used `Illuminate\Contracts\Database\Eloquent\Builder` namespace the issue was solved 🎉.
@taylorotwell taylorotwell merged commit 482c1c1 into laravel:10.x Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants