PHP code example of slavawins / formbuilder

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

    

slavawins / formbuilder example snippets


   php artisan vendor:publish --provider="SlavaWins\Formbuilder\Providers\FormbuilderServiceProvider"
   

@php
    FElement::NewInputTextRow()
        ->SetLabel("Лебл поля")
        ->SetName("amountPrice")
        ->SetValue(old("amountPrice", "test"))
        ->SetDescr("В какую суммы вы готовы уложится?")
        ->RenderHtml(true);
@endphp
 

@php
    FElement::NewInputTextRow()
        ->SetLabel("Лебл поля")
        ->SetName("amountPrice")
        ->FrontendValidate()->Money()
        ->SetValue(old("amountPrice", "test"))
        ->SetDescr("В какую суммы вы готовы уложится?")
        ->RenderHtml(true);
@endphp
 

 @php
    FElement::NewInputTextRow()
     ->SetLabel("Название заказаа")
     ->SetName("title")
     ->FrontendValidate()->String(15,120)
     ->SetPlaceholder("Например: Нужно отправить груз")
     ->SetDescr("Кратко опишите суть заказа")
     ->SetValue(old("title", "Example text") )
     ->RenderHtml(true);
@endphp