PHPackages                             damahaokaixin/filament-record-navigation - 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. damahaokaixin/filament-record-navigation

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

damahaokaixin/filament-record-navigation
========================================

Record navigation from views

01PHP

Since Mar 7Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#filament-record-navigation-plugin)

Introduction
------------

[](#introduction)

The **Filament Record Navigation Plugin** allows seamless navigation through records in a Filament resource's view. With this plugin, you can add "Next" and "Previous" buttons to navigate through records efficiently.

    Record.Nav.mp4    Installation
------------

[](#installation)

### Step 1: Require the package via Composer:

[](#step-1-require-the-package-via-composer)

```
composer require josespinal/filament-record-navigation
```

The package will automatically register itself.

Usage
-----

[](#usage)

### Use the Trait in Your Filament Resource Page

[](#use-the-trait-in-your-filament-resource-page)

In your Filament resource's `EditRecord` page, use the `HasRecordNavigation` trait to add the navigation functionality. And add the action where you want, for example, the header with `getHeaderActions`:

```
namespace App\Filament\Resources\PostResource\Pages;

use App\Filament\Resources\PostResource;
use Filament\Resources\Pages\EditRecord;
use JoseEspinal\RecordNavigation\Traits\HasRecordNavigation;

class EditPost extends EditRecord
{
    use HasRecordNavigation;

    protected static string $resource = PostResource::class;

    protected function getHeaderActions(): array
    {
        return array_merge(parent::getActions(), $this->getNavigationActions());
    }
}
```

### Use with existing actions

[](#use-with-existing-actions)

If you have existing actions, merge them with the navigation actions, like so:

```
protected function getHeaderActions(): array
{
    $existingActions = [
        // Your existing actions here...
    ];

    return array_merge($existingActions, $this->getNavigationActions());
}
```

### Store Record IDs in Session

[](#store-record-ids-in-session)

In your resource's `ListRecords` page, include the `HasRecordsList` trait as follows:

```
namespace App\Filament\Resources\PostResource\Pages;

use App\Filament\Resources\PostResource;
use Filament\Resources\Pages\ListRecords;
use JoseEspinal\RecordNavigation\Traits\HasRecordsList;

class ListPosts extends ListRecords
{
    use HasRecordsList;

    protected static string $resource = PostResource::class;
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Jose Espinal](https://github.com/josespinal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9817e11e527b8bea15c1aa753aef0ad46414e9dacaee327738d84a6bc0d4428d?d=identicon)[jiuwuxiaohun](/maintainers/jiuwuxiaohun)

---

Top Contributors

[![josespinal](https://avatars.githubusercontent.com/u/10059?v=4)](https://github.com/josespinal "josespinal (30 commits)")[![damahaokaixin](https://avatars.githubusercontent.com/u/171231273?v=4)](https://github.com/damahaokaixin "damahaokaixin (2 commits)")

### Embed Badge

![Health badge](/badges/damahaokaixin-filament-record-navigation/health.svg)

```
[![Health](https://phpackages.com/badges/damahaokaixin-filament-record-navigation/health.svg)](https://phpackages.com/packages/damahaokaixin-filament-record-navigation)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
