定制 rmitesh/builder-block 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rmitesh/builder-block

最新稳定版本:v1.0

Composer 安装命令:

composer require rmitesh/builder-block

包简介

This is builder-block component for Filament

README 文档

README

Latest Stable Version

Latest Stable Version Total Downloads Laravel v10.x PHP 8.1

Builder Block is collection of prebuilt Builder block of Filament for the CMS pages. Everything will store in JSON format, using this data you can display content dynamically.

If you are using Filament fabricator then this is perfact package for your dynamic pages.

It comes with following blocks:

  1. Hero section (Left and right side) builder-block

  2. Cards builder-block

  3. Mini states builder-block

  4. Information boxes builder-block

  5. FAQs builder-block

Installation

You can install the package via composer:

composer require rmitesh/builder-block

How to use

use Filament\Forms;
use Filament\Forms\Form;
use Rmitesh\BuilderBlock\Facades\BuilderBlock;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            // your components ...

            Forms\Components\Builder::make('content')
                ->blocks(
                    BuilderBlock::make()
                        ->get(),
                ),

            // your components ...
        ]);
}

and if you want to add your custom blocks then you can add using addBlock function.

BuilderBlock::make()
    ->addBlock(
        Forms\Components\Builder\Block::make('my_custom_block')
            ->columns(4)
            ->icon('heroicon-m-information-circle')
            ->schema([
                // add your form components
            ]),
    )
    ->get()

Also, you can add multiple blocks using addBlocks function.

BuilderBlock::make()
    ->addBlocks([
        Forms\Components\Builder\Block::make('my_custom_block_1')
            ->columns(4)
            ->icon('heroicon-m-information-circle')
            ->schema([
                // add your form components
            ]),
        
        Forms\Components\Builder\Block::make('my_custom_block_2')
            ->columns(4)
            ->icon('heroicon-m-information-circle')
            ->schema([
                // add your form components
            ]),
    ])
    ->get()

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.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-28