1. Go to this page and download the library: Download unnathianalytics/laraform 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/ */
unnathianalytics / laraform example snippets
use LaraForm\Form;
use LaraForm\Fields\{TextField, DateField, MoneyField, SearchSelectField, ToggleField};
$form = Form::make()
->action(route('invoices.store'))
->fields([
TextField::make('party')->label('Party name')->upper()->sUrl('/api/customers'),
ToggleField::make('active')->label('Active')->default(true),
])
->submit('Save');