Constraining Eager Loads
Open
enhancement
- Dominant language
- Kotlin
- Stars
- 9.3k
- Forks
- 798
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 26
Description
Is there a way to put constraint on Eagerly Loaded relationships?
I would really appreatice if there was a some way to do this as it is in Laravel/Eloquent:
```PHP
$users = App\User::with(['posts' => function ($query) {
$query->where('title', 'like', '%first%');
}])->get();
```
https://laravel.com/docs/5.8/eloquent-relationships#constraining-eager-loads
Contributor guide
Assessment
This issue has not been assessed yet.