PHP code example of wdda / laravel-uikit-form

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

    

wdda / laravel-uikit-form example snippets


{!! formInput('my_name') !!}

 <div class="uk-margin-small-bottom">
     <label>My name</label>
     <div class="uk-form-controls">
         <input class="uk-input" name="my_name" value="">
     </div>
 </div>
 

formInput($name, $value = false, $label = false, $id = false, $attributes = false)

formTextarea($name, $value = false, $label = false, $id = false, $rows = 6, $attributes = false)

formSelect($name, $options, $value = false, $label = false, $id = false, $attributes = false)

formCheckbox($name, $value = false, $checked = false, $label = false, $id = false, $attributes = false)

formRadio($name, $value = false, $checked = false, $label = false, $id = false, $attributes = false)
 php
WDDA\LaravelUikitForm\LaravelUikitFormProvider::class,