Skip to content

Quick start ​

1. Give the relations a page. Add the trait to the resource:

php
use Wit3\FilamentRelationNavigator\Concerns\HasRelationPages;

class CustomerResource extends Resource
{
    use HasRelationPages;

    public static function getRelations(): array
    {
        return [
            'orders' => OrdersRelationManager::class,
            'invoices' => InvoicesRelationManager::class,
            NotesRelationManager::class,
        ];
    }
}

Every relation now has its page: /customers/1/orders, /customers/1/invoices, /customers/1/notes.

2. Add the menu to the view page:

php
use Wit3\FilamentRelationNavigator\Concerns\HasRelationNavigator;

class ViewCustomer extends ViewRecord
{
    use HasRelationNavigator;
}

That's all. The relation pages have the menu already, and the tabs on the view page keep working as before.

The orders of a customer on their own page, with the breadcrumb menu open

Version 1.6.2, released 2026-11-14 · MIT License.