PHP code example of hyderkamran / laravel-form-builder
1. Go to this page and download the library: Download hyderkamran/laravel-form-builder 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/ */
hyderkamran / laravel-form-builder example snippets
use Hyderkamran\FormBuilder\Services\FormExporter;
// By slug or ID:
FormExporter::toCSV('contact-us');
FormExporter::toExcel('contact-us');
FormExporter::toPdf('contact-us');
use Hyderkamran\FormBuilder\Traits\HasForms;
class Contact extends Model
{
use HasForms;
}
// Attach a form to any model via polymorphic relation:
$contact->forms()->attach($form->id);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.