2017 © Pedro Peláez
 

asgard-module iforms-module

image

imagina/iforms-module

  • Friday, July 27, 2018
  • by imagina
  • Repository
  • 1 Watchers
  • 0 Stars
  • 87 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 34 % Grown

The README.md

Imagina Forms | 4.0.0

By Imagina Soluciones Web

Installation

composer require imagina/iforms-module, (*1)

Configuration

This module require maatwebsite/excel, (*2)

The Maatwebsite\Excel\ExcelServiceProvider is auto-discovered and registered by default. If you want to register it yourself, add the ServiceProvider in config/app.php:, (*3)

'providers' => [
    /*
     * Package Service Providers...
     */
    Maatwebsite\Excel\ExcelServiceProvider::class,
]

The Excel facade is also auto-discovered. If you want to add it manually, add the Facade in config/app.php:, (*4)

'aliases' => [
    ...
    'Excel' => Maatwebsite\Excel\Facades\Excel::class,
]

To publish the config, run the vendor publish command:, (*5)

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

This will create a new config file named config/excel.php., (*6)

data source maatwebsite/excel, (*7)

Add NOCAPTCHA_SECRET and NOCAPTCHA_SITEKEY in .env file :, (*8)

NOCAPTCHA_SECRET=secret-key
NOCAPTCHA_SITEKEY=site-key

(You can obtain them from here), (*9)

End Points

PATH METHODS
/iforms/v4/forms [GET, POST, PUT, DELETE]
/iforms/v4/fields [GET, POST, PUT, DELETE]
/iforms/v4/types [GET]
/iforms/v4/leads [GET, POST]

Iforms blade component

<x-iforms::form :id="$formId" :layout="$layout" />

$formId the form id or system name ex: contact or 1, (*10)

$layout the form layout, (*11)

LAYOUT TYPE
form-layout-1 horizontal
form-layout-2 inline
form-layout-3 no label

Iforms newsletter subscription form component

<x-iforms::newsletter :title="$title" :description="$description" />

$title the form title, (*12)

$description the form description, (*13)

The Versions