Plugins
Page Preview
Custom Filament form field that renders a live Blade page preview.
Form Builder
Dark theme support
No
Multi language support
No
Not compatible with v5
Supported versions: 3.x
Documentation

License Filament Laravel

Custom Filament form field that renders a Blade preview.

Page Preview

#Installation

Install the package via composer:

composer require ferarandrei1/filament-page-preview

#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

#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

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

#License

MIT License

Andrei Feraru

Andrei is a Full-Stack Developer from Bucharest, Romania, focused on building high-quality Laravel applications and Filament plugins, with a strong interest in clean architecture, performance, and long-term maintainability.

3
Plugins
3
Stars
More from this author
Featured Plugins