A Filament plugin to add a full-screen preview modal to your Panel pages. The modal can be used before saving to preview a modified record.
You can install the package via composer:
composer require pboivin/filament-peek:"^2.0"
Register a FilamentPeekPlugin
instance in your Panel provider:
use Pboivin\FilamentPeek\FilamentPeekPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
FilamentPeekPlugin::make(),
]);
}
Then, publish the assets:
php artisan filament:assets
Follow the steps in the Upgrade Guide.
Peek | Status | Filament | PHP |
---|---|---|---|
1.x | Bugfixes only | ^2.0 | ^8.0 |
2.x | Current version | ^3.0 | ^8.1 |
From the Filament documentation:
Livewire v3 is recently released! The Livewire team have done a great job in making it stable, but it was a complete rewrite of Livewire v2. You may encounter issues, so we recommend testing your application thoroughly before using Filament v3 in production.
Please feel free to report any issues you encounter with Peek in this repository. I'll work with you to determine where the issue is coming from.
There are 2 demo projects available to try the plugin:
Repository | Description |
---|---|
filament-peek-demo | Content previews on a simple Filament project with Laravel Blade views. |
filament-peek-demo-with-astro | Content previews on a more complex project with Filament as "headless CMS", and Astro on the front-end. (Work in progress) |
The documentation is available in the 'docs' directory on GitHub:
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The initial idea is heavily inspired by module previews in Twill CMS.
The MIT License (MIT). Please see License File for more information.