github nb3n/filament-record-nav v1.0.0

5 months ago

🎉 Introducing Filament Record Navigation

We're excited to announce the first stable release of Filament Record Navigation - a powerful Laravel package that adds elegant next/previous record navigation to your Filament PHP admin panels.

Navigate seamlessly between records with intuitive navigation buttons that integrate perfectly with Filament's design system.


✨ What's New in v1.0.0

🎯 Core Features

  • Simple Integration - Add navigation with just a single trait
  • Native Filament Actions - NextRecordAction and PreviousRecordAction components
  • Smart Button States - Automatically disabled at record boundaries
  • Configurable Ordering - Customize navigation order and directions
  • Performance Optimized - Efficient database queries

🔧 Components Added

  • NextRecordAction - Navigate to next record
  • PreviousRecordAction - Navigate to previous record
  • WithRecordNavigation trait - Easy integration for resource pages
  • Configuration file for customization

⚙️ Configuration Options

  • Customizable ordering column (default: id)
  • Configurable navigation directions
  • Support for custom navigation logic

🚀 Quick Start

composer require nben/filament-record-nav
<?php

use Nben\FilamentRecordNav\Concerns\WithRecordNavigation;
use Nben\FilamentRecordNav\Actions\NextRecordAction;
use Nben\FilamentRecordNav\Actions\PreviousRecordAction;

class ViewPost extends ViewRecord
{
    use WithRecordNavigation;
    
    protected function getHeaderActions(): array
    {
        return [
            PreviousRecordAction::make(),
            NextRecordAction::make(),
        ];
    }
}

📋 Requirements

  • PHP ^8.1
  • Laravel ^10.0
  • Filament ^3.0

🔗 Links


🙏 Special Thanks

Thank you to the Filament PHP community for inspiring this package. We hope it enhances your admin panel experience!

Full Changelog: https://github.com/nb3n/filament-record-nav/commits/v1.0.0

Don't miss a new filament-record-nav release

NewReleases is sending notifications on new releases.