Download the PHP package klisica/filament-builder-blocks without Composer
On this page you can find all versions of the php package klisica/filament-builder-blocks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download klisica/filament-builder-blocks
More information about klisica/filament-builder-blocks
Files in klisica/filament-builder-blocks
Package filament-builder-blocks
Short Description Flexible builder blocks generator for Filament
License MIT
Homepage https://github.com/klisica/filament-builder-blocks
Informations about the package filament-builder-blocks
Filament Builder Blocks
🏗️ A Simpler Web CMS Builder for Laravel Filament
Create, manage & customize
By re-using Filament's Builder Input this package enables you to create custom section blocks as PHP classes (i.e. DefaultHeader.php
) enabling you to use all features supported in Filament.
Each section block uses his own blade view file (i.e. default-header.blade.php
) with support for dynamic data binded in PHP classes.
Another great helper functions that are ready-to-use:
renderSections(...)
- Returns a fully formatted HTML code for each section,cleanup(...)
- Cleans unused attributes and values on store and update methods on filaments Create and Edit pages.
Installation
-
Require the package via composer:
-
Install it to publish the config file:
-
Open the
config/filament-builder-blocks.php
file and set thepath
value to root destination where you'll have you PHP classes (or leave it as it is). - Run make section command to create your first example section class with the blade view file:
Default folder structure example
Main section Hero.php
will be displayed in builder dropdown, while child sections ExampleHero.php
and AdvancedHero.php
will be displayed as toggle buttons.
Creating layouts for each section block component.
[!NOTE] To be sure that on running the
cleanup()
helper your data won't be remove use thecontent.
prefix onmake
input methods. This is used a handler to avoid storing inputs that you still need to show for descpritive purposes (i.e. Placeholder component). Take theExampleHero.php
as example:
Example for adding cleanup on some Filaments Resource Edit Page:
Rendering components
-
Build sections in controller:
- Display them in a
dynamic.blade.php
(or whatever you name it) file:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Krševan Lisica
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-builder-blocks with dependencies
filament/filament Version ^3.2
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16