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')->value('value 123')->class('uk-input') !!}
<div class="uk-margin-small-bottom">
<label @if($id)for="{{ $id }}"@endif>{{ $label }}</label>
<div class="uk-form-controls">
<input @if(!$class)class="uk-input" @endif
@if($id)id="{{ $id }}" @endif
@if($name)name="{{ $name }}" @endif
value="{{ $value }}"{!! $attributes !!}>
</div>
</div>
formInput('Input')
->label('Input')
->id('id')
->class('uk-input')
->attributes(['attribute1', 'attribute2' => 'value'])
->value('value')
formTextarea('Textarea')
->label('Textarea')
->id('id')
->class('uk-input')
->attributes(['attribute1', 'attribute2' => 'value'])
->value('value')
->rows(8)
formSelect('Select')
->label('Select')
->id('id')
->class('uk-input')
->attributes(['attribute1', 'attribute2' => 'value'])
->value('value')
formCheckbox('Checkbox')
->label('Checkbox')
->id('id')
->class('uk-input')
->attributes(['attribute1', 'attribute2' => 'value'])
->value('value')
formRadio('Radio')
->label('Radio')
->id('id')
->class('uk-input')
->attributes(['attribute1', 'attribute2' => 'value'])
->value('value')
php
WDDA\LaravelUikitForm\LaravelUikitFormProvider::class,