PHP code example of okipa / laravel-form-components
1. Go to this page and download the library: Download okipa/laravel-form-components 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/ */
blade
@php($data = ['description' => 'A wonderful description'];)
<x:form::form :bind="$user">
...
<x:form::textarea
name="description"
:bind="$user"
:value="$data['description']"/> {{-- Will set the value from `$data['description`] --}}
</x:form::form>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.