Skip to content

Commit be72b85

Browse files
committed
update readme
1 parent bbf8292 commit be72b85

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
## Why is this method needed?
88

9-
Now, if you want the sum or find the maximum column value in the related model, you will have two database queries. With this methods, it all turns into 1 query to the database and there is no need to load extra data.
9+
Now, if you want the sum or find the maximum column value in the related model, you will have two database queries.
10+
With this methods, it all turns into 1 query to the database and there is no need to load extra data.
1011
I often use this in my work and I hope it will be useful to you!
1112

1213
## Installation
@@ -74,12 +75,3 @@ $invoice->loadSum(['items:price' => function ($query) {
7475
}]);
7576
```
7677
And of course it is all compatible with scopes in models.
77-
78-
## Security
79-
80-
If you discover any security related issues, please email instead of using the issue tracker.
81-
82-
## Credits
83-
84-
- [All contributors](https://github.com/alexmg86/laravel-sub-query/graphs/contributors)
85-

0 commit comments

Comments
 (0)