Download the PHP package beier/filament-pages without Composer
On this page you can find all versions of the php package beier/filament-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beier/filament-pages
More information about beier/filament-pages
Files in beier/filament-pages
Package filament-pages
Short Description Highly opinionated Pages for filament
License MIT
Homepage https://github.com/pascalebeier/filament-pages
Informations about the package filament-pages
beier/filament-pages
A starting point to create a Page Resource and front routing with filament. It is the result of packaging our Page CMS functionality.
This package does not register any routes, as page routing always depends on your project. This is meant to be providing you a quickstart in creating a dynamic page module.
Demo
Screenshots
Installation
You can install the package via composer:
You can run the installation command with:
This is the contents of the published config file:
Usage
Within Filament
After running the Install Command, you will find a new Page Resource in your Filament Admin.
Templates
This package uses the concept of Template-based forms by Dennis Koch (pxlrbt). You can read more about the general idea in his Filament Trick.
You will find a basic page template. By creating and selecting your own templates, you are able to fully customize your pages.
To create your own Templates, implement the Beier\FilamentPages\Contracts\FilamentPageTemplate
:
Finally, register your template in config/filament-pages.php
:
Your template will appear in the Template Selection and render your schema accordingly.
Customizing the Page Resource
The recommended way of extending the Page Resource is overriding
FilamentPageResource::insertBeforePrimaryColumnSchema
FilamentPageResource::insertAfterPrimaryColumnSchema
FilamentPageResource::insertBeforeSecondaryColumnSchema
FilamentPageResource::insertAfterSecondaryColumnSchema
in your own PageResource class, extending Beier\FilamentPages\Filament\Resources\FilamentPageResource
.
You will find most common configuration options in the config file.
Then, register your class within config/filament-pages.php
Examples
Usage with laravel-filament-seo
-
Create
app/Models/FilamentPage.php
-
Create
app/Filament/Resources/PageResource.php
-
Define Model and Resource in
config/filament-pages.php
-
If necessary, clear application caches for the Service Locator to load your resource:
$ php artisan cache:clear
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Pascale Beier
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-pages with dependencies
filament/filament Version ^2.0
spatie/laravel-package-tools Version ^1.13.5
illuminate/contracts Version ^9.0 || ^10.0