We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c67be commit 3b96705Copy full SHA for 3b96705
README.md
@@ -31,10 +31,12 @@ If you want to get results from a relationship without actually loading them and
31
```php
32
$invoices = Invoice::withSum('items:price,price2')->get();
33
echo $invoices[0]->items_price_sum;
34
+
35
$invoices = Invoice::withMin('items:price,price2')->get();
36
echo $invoices[0]->items_price_min;
37
```
38
The following methods apply to all methods.!!!
39
40
You may add the "sum" for multiple relations as well as add constraints to the queries:
41
42
use Illuminate\Database\Eloquent\Builder;
0 commit comments