PHP code example of natabio / bs4-form

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

    

natabio / bs4-form example snippets


{!! Form::open(['url' => mixed $route = null, string 'method' => 'POST|PATCH|DELETE|GET', (optional) bool 'files' => true]) !!}

{!! Form::model(mixed $model = null, ['url' => mixed $route = null, string 'method' => 'POST|PATCH|DELETE|GET', (optional) bool 'files' => true]) !!}

{!! Form::close()) !!}

{!! Form::inputGroup(string $type = 'text', string $lable = null, string $name = null, mixed $value = null, array $options = []) !!}

{!! Form::selectGroup(string $lable = null, string $name = null, array $options = [], mixed $selected = null, array $options = []) !!}

{!! Form::inlineCheckbox(string $name, mixed $value = 1, mixed $label = null, bool $checked = null, array $options = []) !!}

Form::inlineRadio(string $name, mixed $value = 1, mixed $label = null, bool $checked = null, array $options = [])