PHP code example of skyraptor / filament-blocks-builder
1. Go to this page and download the library: Download skyraptor/filament-blocks-builder library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
skyraptor / filament-blocks-builder example snippets
use SkyRaptor\FilamentBlocksBuilder\Blocks;
use SkyRaptor\FilamentBlocksBuilder\Forms\Components\BlocksInput;
BlocksInput::make('content')
->blocks(fn () => [
Blocks\Layout\Card::block($form),
Blocks\Typography\Heading::block($form),
Blocks\Typography\Paragraph::block($form)
])
namespace App\Filament\Blocks;
use Filament\Forms\Components;
use Filament\Forms\Form;
class Example extends \SkyRaptor\FilamentBlocksBuilder\Blocks\Contracts\Block
{
public static function block(Form $form): Components\Builder\Block
{
return parent::block($form)->schema([
Components\Textarea::make('content')
->