PHPackages                             ferarandrei1/filament-page-preview - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ferarandrei1/filament-page-preview

ActiveLibrary[Templating &amp; Views](/categories/templating)

ferarandrei1/filament-page-preview
==================================

Custom Filament form field that renders a Blade preview

v1.0.0(6mo ago)04MITPHPPHP ^8.1|^8.2|^8.3

Since Dec 21Pushed 6mo agoCompare

[ Source](https://github.com/feraandrei1/filament-page-preview)[ Packagist](https://packagist.org/packages/ferarandrei1/filament-page-preview)[ Docs](https://github.com/ferarandrei1/filament-page-preview)[ RSS](/packages/ferarandrei1-filament-page-preview/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Filament Page Preview
=====================

[](#filament-page-preview)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![Filament](https://camo.githubusercontent.com/d2ce7cfa63cef62a6b29fabb1242da752eaa5f941d636d8ad3901f066f8f4b4a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d76332d6f72616e67652e737667)](https://camo.githubusercontent.com/d2ce7cfa63cef62a6b29fabb1242da752eaa5f941d636d8ad3901f066f8f4b4a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d76332d6f72616e67652e737667)[![Laravel](https://camo.githubusercontent.com/8a2a5d53af6930ffb13b7aef53027205c43c6202688bf314e336dc703891b0e7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d7631312d7265642e737667)](https://camo.githubusercontent.com/8a2a5d53af6930ffb13b7aef53027205c43c6202688bf314e336dc703891b0e7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d7631312d7265642e737667)

Custom Filament form field that renders a Blade preview.

[![Page Preview](screenshot.jpg)](screenshot.jpg)

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

[](#installation)

Install the package via composer:

```
composer require ferarandrei1/filament-page-preview
```

Usage
-----

[](#usage)

Use the `PreviewField` component in your Filament form:

```
use Feraandrei1\FilamentPagePreview\Forms\Components\PreviewField;
use Filament\Forms\Form;

public function form(Form $form): Form
{
    return $form->schema([
        PreviewField::make('preview_field')
            ->previewData([
                'user' => Auth::user()->username,
                'previewRouteName' => 'preview',
                'data' => $data,
            ])
            ->nullable(),
    ]);
}
```

### Documentation

[](#documentation)

- **[Creating a Preview Route](docs/preview-route.md)** - Step-by-step guide to set up routes and controllers
- **[Complete Filament Page Example](docs/filament-page-example.md)** - Full example with two-column layout and live preview

### Custom Preview View

[](#custom-preview-view)

You can publish the views to customize them:

```
php artisan vendor:publish --tag=filament-page-preview-views
```

Or, you can specify a custom view for the preview:

```
PreviewField::make('preview_field')
    ->previewView('filament.view-fields.custom-preview')
    ->previewData(['key' => 'value']);
```

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

[](#requirements)

- PHP 8.1 or higher
- Filament 3.0 or higher
- Laravel 10.0 or higher

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance68

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

194d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/105398957?v=4)[Andrei Feraru](/maintainers/feraandrei1)[@feraandrei1](https://github.com/feraandrei1)

---

Top Contributors

[![feraandrei1](https://avatars.githubusercontent.com/u/105398957?v=4)](https://github.com/feraandrei1 "feraandrei1 (7 commits)")

---

Tags

laravelbladepreviewfilamentfilament-pluginform-field

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ferarandrei1-filament-page-preview/health.svg)

```
[![Health](https://phpackages.com/badges/ferarandrei1-filament-page-preview/health.svg)](https://phpackages.com/packages/ferarandrei1-filament-page-preview)
```

###  Alternatives

[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18421.4k11](/packages/technikermathe-blade-lucide-icons)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2464.9k6](/packages/hasinhayder-tyro-login)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

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