PHPackages                             novius/laravel-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. novius/laravel-filament-page-manager

ActiveLibrary[Admin Panels](/categories/admin)

novius/laravel-filament-page-manager
====================================

A Laravel Filament package to manage pages.

1.0.6(1mo ago)4161↓42.9%AGPL-3.0-or-laterPHPPHP &gt;=8.2CI passing

Since Oct 1Pushed 1mo agoCompare

[ Source](https://github.com/novius/laravel-filament-page-manager)[ Packagist](https://packagist.org/packages/novius/laravel-filament-page-manager)[ RSS](/packages/novius-laravel-filament-page-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (28)Versions (9)Used By (0)

Laravel Filament Page Manager
=============================

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

[![Novius CI](https://github.com/novius/laravel-filament-page-manager/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/novius/laravel-filament-page-manager/actions/workflows/main.yml)[![Packagist Release](https://camo.githubusercontent.com/116f5e0dcb17694acb8785d8111acd71d8d13854b24c4195c3b8cca362d69231/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f766975732f6c61726176656c2d66696c616d656e742d706167652d6d616e616765722e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://packagist.org/packages/novius/laravel-filament-page-manager)[![License: AGPL v3](https://camo.githubusercontent.com/c61341f63648cdd5aba4f7a073b513106a63778c27b15f96c56157642bc943b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c25323076332d626c75652e737667)](http://www.gnu.org/licenses/agpl-3.0)

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

[](#introduction)

This package allows you to manage pages with custom templates.

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

[](#requirements)

- PHP &gt;= 8.2
- Laravel &gt;= 11.0
- Laravel Filament &gt;= 4

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

[](#installation)

```
composer require novius/laravel-filament-page-manager
```

Run migrations with:

```
php artisan migrate
```

In your `AdminFilamentPanelProvider` add the `PageManagerPlugin` :

```
use Novius\LaravelFilamentPageManager\Filament\PageManagerPlugin;

class AdminFilamentPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugins([
                PageManagerPlugin::make(),
            ])
            // ...
            ;
    }
}
```

### Route

[](#route)

Add to your `routes/web.php` file:

```
    \Novius\LaravelFilamentPageManager\Facades\PageManager::routes();
```

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

[](#configuration)

Some options that you can override are available.

```
php artisan vendor:publish --provider="Novius\LaravelFilamentPageManager\LaravelFilamentPageManagerServiceProvider" --tag="config"
```

If you're overload the `Page` model (and so the filament resource), remember to change them in the config.

Templates
---------

[](#templates)

To add a template, add your custom class to `templates` array in the configuration file or place it under `App\Pages\Templates` namespace if you keep this value for `autoload_templates_in`.

Your class must implement `Novius\LaravelFilamentPageManager\Contracts\PageTemplate`.

Example :

In `app/Pages/Templates/StandardTemplate.php`

```
