Create pages from within your Filament panel. Intended for privacy policy, imprint, etc.
You can install the package via composer:
composer require tobiasla78/filament-simple-pages
Install the plugin and run the migrations:
php artisan filament-simple-pages:install
Register the plugin in your AdminPanelProvider:
use Tobiasla78\FilamentSimplePages\FilamentSimplePagesPlugin; public function panel(Panel $panel): Panel { return $panel ->path('admin') ->plugins([ FilamentSimplePagesPlugin::make() ->prefixSlug('page') ]) }
For example: ->prefixSlug('page')
will set the page URL to http://localhost/admin/page/privacy-policy
.
You can make the pages viewable in another Filament panel:
use Tobiasla78\FilamentSimplePages\Pages\SimplePage; public function panel(Panel $panel): Panel { return $panel ->path('user') ->pages([ SimplePage::class, ]) }
The URL would be http://localhost/user/page/privacy-policy
.
discussion or Filament PHP Discord
The MIT License (MIT). Please see License File for more information.