TIP 22 / 73

Simple Pagination.

In pagination, if you want to have just "Previous/next" links instead of all the page numbers (and have fewer DB queries because of that), just change paginate() to simplePaginate():

php
// Previous approach:
$users = User::paginate(10);

// Recommended approach:
$users = User::simplePaginate(10);