Skip to content

Commit 4138185

Browse files
committed
Shields 🔰
1 parent 588ff89 commit 4138185

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Laravel LinkHeader Paginator
22

3+
[![Travis](https://img.shields.io/travis/danbovey/laravel-linkheader-paginator.svg)]()
4+
[![Packagist Downloads](https://img.shields.io/packagist/dt/danbovey/laravel-linkheader-paginator.svg)]()
5+
[![Version](https://img.shields.io/packagist/v/danbovey/laravel-linkheader-paginator.svg)]()
6+
[![License](https://img.shields.io/packagist/l/danbovey/laravel-linkheader-paginator.svg)]()
7+
38
A custom Laravel/Lumen Paginator that uses the [Link header (RFC 5988)](https://tools.ietf.org/html/rfc5988) to send pagination info in the response. Removes the envelope around `data`!
49

510
Adds a method called `toResponse` that returns a JSON response with headers. The `getHeaders` method exists if you need different response data.

0 commit comments

Comments
 (0)