Create pages from within your Filament panel. Intended for privacy policy, imprint, etc.
- Resource in your AdminPanelProvider to create pages
- Customize the URL of your pages
- Optional image field
- View pages from another panel
- Toggle search engine indexing for each page
- Toggle the visibility of the page
- Support for dark mode
You can install the package via composer:
composer require tobiasla78/filament-simple-pages
Install the plugin with:
php artisan filament-simple-pages:install
Register the plugin in your AdminPanelProvider.
use Tobiasla78\FilamentSimplePages\FilamentSimplePagesPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
FilamentSimplePagesPlugin::make()
->prefixSlug('page') // (optional) sets the page url to yourPanelUrl/page/yourPageSlug
)
}
You can make the pages viewable in another Panel (directly via url):
use Tobiasla78\FilamentSimplePages\Pages\SimplePage;
public function panel(Panel $panel): Panel
{
return $panel
->pages([
SimplePage::class,
])
}
Optionally, you can publish the Filament resource:
php artisan vendor:publish --tag="filament-simple-pages-resources"
Files will be published to App/Filament/Resources you may need to move them and adjust Namespaces if you are using multiple panels.
Optionally, you can publish the views using:
php artisan vendor:publish --tag="filament-simple-pages-views"
Feel free to open a discussion. This plugin also has its own channel on the official Filament PHP Discord server. Feedback is also welcome.
The MIT License (MIT). Please see License File for more information.