PHP code example of litstack / bricks

1. Go to this page and download the library: Download litstack/bricks 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/ */

    

litstack / bricks example snippets


use Litstack\Bricks\Repeatables\TextRepeatable;

$page->card(function ($form) {
    $form->block('content')
        ->title('My Content')
        ->repeatables(function ($repeatables) {
            $repeatables->add(TextRepeatable::class);
        });
});

return view('welcome')->with([
    'form' => Form::load('pages', 'home')
]);

@block($form->content)
shell
php artisan vendor:publish --provider="Litstack\Bricks\BricksServiceProvider --tag=views"