Download the PHP package outerweb/filament-layout-builder without Composer
On this page you can find all versions of the php package outerweb/filament-layout-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outerweb/filament-layout-builder
More information about outerweb/filament-layout-builder
Files in outerweb/filament-layout-builder
Package filament-layout-builder
Short Description This package extends the filament builder field to work with predefined layout blocks to build the content of a page.
License MIT
Homepage https://github.com/outer-web/filament-layout-builder
Informations about the package filament-layout-builder
Filament Layout Builder
This package extends the filament builder field to work with predefined layout blocks to build the content of a page.
Installation
You can install the package via composer:
Add the plugin to your desired Filament panel:
Usage
Creating layout blocks
Create all your layout blocks in the app/View/Components/LayoutBuilder
directory. Each layout block should extend the Outerweb\FilamentLayoutBuilder\View\Components\Block
class.
Define the view
You can define which view to render by setting the $view
property.
Define the fields for the Filament form
You can define the fields for the Filament form by adding a schema
method to the block.
Formatting data / Fetching data from the database
You can define a formatData
method on your block to format the data before it is passed to the view.
This can be useful to fetch data from the database or to format the data before it is passed to the view.
Using the make command
You can use the make:layout-builder-block
command to generate a new layout builder block.
This will generate a new layout builder block in the app/View/Components/LayoutBuilder
directory: app/View/Components/LayoutBuilder/Article.php
.
And a new view in the resources/views/components/layout-builder
directory: resources/views/components/layout-builder/article.blade.php
.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Simon Broekaert
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-layout-builder with dependencies
filament/filament Version ^3.2
laravel/framework Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.16