Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Mar 20, 2022
1 parent a8104ae commit 8cedfcd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
[![License](https://poser.pugx.org/staudenmeir/eloquent-eager-limit/license)](https://packagist.org/packages/staudenmeir/eloquent-eager-limit)

## Introduction
This Laravel Eloquent extension allows limiting the number of eager loading results per parent using [window functions](https://en.wikipedia.org/wiki/Select_(SQL)#Limiting_result_rows).

This Laravel Eloquent extension allows limiting the number of eager loading results per parent
using [window functions](https://en.wikipedia.org/wiki/Select_(SQL)#Limiting_result_rows).

Supports Laravel 5.5.29+.

Expand All @@ -19,7 +21,7 @@ Supports Laravel 5.5.29+.
- **PostgreSQL 9.3+**
- **SQLite 3.25+**: The limit is ignored on older versions of SQLite. This way, your application tests still work.
- **SQL Server 2008+**

## Installation

composer require staudenmeir/eloquent-eager-limit:"^1.0"
Expand Down Expand Up @@ -74,7 +76,7 @@ class Post extends Model
$users = User::with('latestPost')->get();
```

You can also apply `offset()/skip()` to your relationship:
You can also apply `offset()/skip()` to your relationship:

```php
class User extends Model
Expand Down

0 comments on commit 8cedfcd

Please sign in to comment.