PHPackages                             nben/filament-record-nav - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nben/filament-record-nav

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nben/filament-record-nav
========================

Next/Previous record navigation for Filament PHP

v2.0.0(1mo ago)105.0k↓12.5%2[1 PRs](https://github.com/nb3n/filament-record-nav/pulls)MITPHPPHP ^8.2

Since May 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/nb3n/filament-record-nav)[ Packagist](https://packagist.org/packages/nben/filament-record-nav)[ Docs](https://github.com/nb3n/filament-record-nav)[ RSS](/packages/nben-filament-record-nav/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Filament Record Navigation
==========================

[](#filament-record-navigation)

A Laravel package that adds elegant next/previous record navigation to your Filament PHP admin panels. Navigate seamlessly between records with intuitive navigation buttons.

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![PHP Version](https://camo.githubusercontent.com/edc2fe5e63944581d97b5f25f468b5b1b2cd71914b9e16836d9978609669d6b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d626c7565)](https://camo.githubusercontent.com/edc2fe5e63944581d97b5f25f468b5b1b2cd71914b9e16836d9978609669d6b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d626c7565)[![Laravel](https://camo.githubusercontent.com/1e9d92f3aff9271e2cafc753d2327ae7db0f1694ccc374b5e850349b994223d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31312e7825323025374325323031322e7825323025374325323031332e782d726564)](https://camo.githubusercontent.com/1e9d92f3aff9271e2cafc753d2327ae7db0f1694ccc374b5e850349b994223d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31312e7825323025374325323031322e7825323025374325323031332e782d726564)[![Filament](https://camo.githubusercontent.com/70f8916e5723f77740fbe80dbc50aa5a4022b169a5c1f43428da542bb113426c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d342e78253230253743253230352e782d6f72616e6765)](https://camo.githubusercontent.com/70f8916e5723f77740fbe80dbc50aa5a4022b169a5c1f43428da542bb113426c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d342e78253230253743253230352e782d6f72616e6765)

Features
--------

[](#features)

- **Zero-config integration** - drop two actions into `getHeaderActions()` and you're done
- **No trait required** - actions work out of the box without any page class changes
- **Filament native** - extends Filament's `Action` class, all fluent methods work
- **Configurable** - set ordering column and direction globally via config
- **Fully overridable** - add the trait and override any method for custom query logic
- **Page-type aware** - choose `view` or `edit` as the target page per action
- **Future-proof** - depends only on Filament's stable `$livewire` injection API
- **Smart boundaries** - buttons auto-disable and turn gray at the first/last record
- **Optimised queries** - each action fires exactly one database query per render

Requirements
------------

[](#requirements)

- PHP `^8.2`
- Laravel `^10.0 | ^11.0 | ^12.0 | ^13.0`
- Filament `^4.0 | ^5.0`

Demo
----

[](#demo)

[![Package Demo](example.gif)](example.gif)

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require nben/filament-record-nav
```

Optionally publish the config file to customise the order column and sort directions:

```
php artisan vendor:publish --tag=filament-record-nav-config
```

Quick Start
-----------

[](#quick-start)

Add the two actions to `getHeaderActions()` on any `ViewRecord` or `EditRecord` page. **No trait required - this is all you need for the default behaviour.**

```
