Download the PHP package amarenkov/laravel-mutable-content-filament without Composer
On this page you can find all versions of the php package amarenkov/laravel-mutable-content-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amarenkov/laravel-mutable-content-filament
More information about amarenkov/laravel-mutable-content-filament
Files in amarenkov/laravel-mutable-content-filament
Package laravel-mutable-content-filament
Short Description Filament 5 admin panel for laravel-mutable-content: forms and tables built from field definitions, screens to manage fields and lists of values, change log authorship.
License MIT
Homepage https://github.com/amarenkov/laravel-mutable-content-filament
Informations about the package laravel-mutable-content-filament
amarenkov/laravel-mutable-content-filament
A Filament 5 admin panel for
amarenkov/laravel-mutable-content.
Builds forms, infolists and tables from model field definitions and makes sure every change made in the admin panel lands in the change log with its author.
Screenshots
A demo bicycle catalog. Nothing below is written by hand: the resources only set the model.
Table built from the field definitions: LOV items with icons, object titles, weight and lengths in their display units. "Gears" and "Color" were added in the admin panel.

Form: a select with icons for a LOV item, a searchable select for an object reference, inputs in display units.

Fields of a class: the lock marks fields declared in code, which cannot be deleted; fields added in the admin panel can.

Lists of values: items with icons, added one by one or as a list of labels.

Features
- Forms and tables from field definitions. The component is chosen by field type: a toggle for booleans, a select for lists of values and object references, a date picker for dates, a text input by default. Required and immutable flags are applied automatically.
- Change log. Base pages and actions set the author and the path the change was made from; both go to the core change log table.
- System records protection. Deletion is hidden, and fields marked "immutable for system objects" are locked on records created by the seeders.
- Management screens for fields, their usage in classes, lists of values and their items: an administrator adds new fields without a developer and without migrations.
- Unlisted codes. Codes that are not in a list of values (when the field allows them) are marked in tables and forms, with a filter to find such records.
Requirements
- PHP 8.4
amarenkov/laravel-mutable-contentfilament/filament^5.0
Installation
The management screens are registered explicitly; resource discovery does not find them:
Usage
Extend resources, pages and actions from this package instead of plain Filament ones:
There is no need to define form(), infolist() or table(): they are built from the field
definitions.
Tuning a single component
formComponentsFromFields() returns components keyed by field code, so you can adjust one
component without rebuilding the form:
Saving
Wrap custom saves in SaveHelper::save(): a unique constraint violation or a DomainException
thrown by the model is shown as a notification instead of a server error, and the transaction is
rolled back.
Translations
UI strings are in lang/{en,ru}/ui.php under the mutable-content-filament namespace. Publish
them to override:
Caveats
Extending plain Filament classes instead of the ones from this package does not throw, but
silently breaks three things: forms get raw jsonb instead of flat fields, the change log loses
the author, and deletion of system records is no longer blocked.
License
MIT. See LICENSE.
All versions of laravel-mutable-content-filament with dependencies
amarenkov/laravel-mutable-content Version ^0.7.3
filament/filament Version ^5.0