PHPackages                             cube-agency/filament-page-manager - 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. [Admin Panels](/categories/admin)
4. /
5. cube-agency/filament-page-manager

ActiveLibrary[Admin Panels](/categories/admin)

cube-agency/filament-page-manager
=================================

Page manager for Filament

v3.0.0(1w ago)21.5k↓73%MITPHPPHP ^8.2CI passing

Since Apr 24Pushed 1w ago4 watchersCompare

[ Source](https://github.com/cube-agency/filament-page-manager)[ Packagist](https://packagist.org/packages/cube-agency/filament-page-manager)[ Docs](https://github.com/cube-agency/filament-page-manager)[ RSS](/packages/cube-agency-filament-page-manager/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (55)Versions (33)Used By (0)

Page manager for Filament
=========================

[](#page-manager-for-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/354478811c9cb14be45c79184b92c44eb8fbd0914ab10424022e163821456f0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637562652d6167656e63792f66696c616d656e742d706167652d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cube-agency/filament-page-manager)[![GitHub Tests Action Status](https://camo.githubusercontent.com/acd1bbb8ace82a262fc46888ebd1650477498a7c88d447b8432574e982429164/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f637562652d6167656e63792f66696c616d656e742d706167652d6d616e616765722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cube-agency/filament-page-manager/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3c253b1644839a175d5795c4483f3be4242f5e9058f2054ba0fb3c0729627cc7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f637562652d6167656e63792f66696c616d656e742d706167652d6d616e616765722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/cube-agency/filament-page-manager/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e535f2be8b12bd29dce11b34fbf85950e5610ec24768a0034a5196dbdd39c3bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637562652d6167656e63792f66696c616d656e742d706167652d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cube-agency/filament-page-manager)

Template based Page manager for FilamentPHP

Compatibility
-------------

[](#compatibility)

Package VersionFilament Version1.x3.x2.x4.x3.x5.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require cube-agency/filament-page-manager
```

Run install command:

```
php artisan filament-page-manager:install
```

Run migrations (if that was not done on install):

```
php artisan migrate
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-page-manager-config"
```

Available Configuration Options
-------------------------------

[](#available-configuration-options)

- **table\_name**: The database table name used for pages.
- **route\_name\_prefix**: Prefix applied to generated route names.
- **route\_middleware**: Middleware applied to page routes.
- **clear\_obsolete\_route\_cache**: When set to true, obsolete route-cache metadata is cleared so the scheduler can rebuild routes without deleting the active cache during a request.
- **refresh\_route\_cache**: When set to true, the route cache will be safely refreshed after changes by the scheduled package command.
- **max\_depth**: Controls the maximum nesting level of the tree view for pages.

Usage
-----

[](#usage)

Add this plugin to your AdminPanelProvider

```
use CubeAgency\FilamentPageManager\FilamentPageManagerPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentPageManagerPlugin::make(),
        ]);
}
```

Create new template(s) according to this readme: [Filament Template](https://github.com/cube-agency/filament-template)

Add these templates in config/filament-template.php under "pages" key, for example:

```
