z3d0x/filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps

Installs: 120 157

Dependents: 4

Suggesters: 0

Security: 0

Stars: 348

Watchers: 9

Forks: 67

Open Issues: 2

pkg:composer/z3d0x/filament-fabricator


README

Latest Version on Packagist Total Downloads

fabricator banner

What is Filament Fabricator? Filament Fabricator is simply said a block-based page builder skeleton. Filament Fabricator takes care of the PageResource & frontend routing, so you can focus on what really matters: your Layouts & Page Blocks.

Compatibility

Fabricator Filament PHP
1.x ^2.0 ^8.0
2.x ^3.0 ^8.1
3.x ^4.0 ^8.2

Installation

You can install the package via composer:

composer require z3d0x/filament-fabricator

After that run the install command:

php artisan filament-fabricator:install

Register a FilamentFabricatorPlugin instance in your Panel provider:

use Z3d0X\FilamentFabricator\FilamentFabricatorPlugin;

//..

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentFabricatorPlugin::make(),
        ]);
}

Then, publish the registered plugin assets:

php artisan filament:assets

Documentation

Documentation can be viewed at: https://filamentphp.com/plugins/z3d0x-fabricator

Screenshots

fabricator-index

fabricator-edit-1

fabricator-edit-2

Migrate

From 2.x to 3.x

  • There is no longer a default value for the pages.layout database column
  • FilamentFabricatorManager#getPageUrlFromId no longer has a prefixSlash parameter

From Filament v3 to Filament v4

Following the upgrade guide from Filament should be enough.

In case it isn't, you can run the following commands:

composer require filament/upgrade:"^4.0" -W --dev

vendor/bin/filament-v4

# Run the commands output by the upgrade script, they are unique to your app
composer require filament/filament:"^4.0" z3d0x/filament-fabricator:"^4.0" -W --no-update
composer update

For more info on breaking changes, please refer to the CHANGELOG

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

License

The MIT License (MIT). Please see License File for more information.