tecnodesignc/form-module

Form module for EncoreCMS 2

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

Type:encore-module

2.0.1 2022-08-16 02:12 UTC

This package is auto-updated.

Last update: 2024-04-16 05:47:34 UTC


README

Installation

composer require tecnodesignc/form-module

Configuration

This module require maatwebsite/excel

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:

'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:

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

To publish the config, run the vendor publish command:

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

This will create a new config file named config/excel.php.

data source maatwebsite/excel

Add NOCAPTCHA_SECRET and NOCAPTCHA_SITEKEY in .env file :

NOCAPTCHA_SECRET=secret-key
NOCAPTCHA_SITEKEY=site-key

(You can obtain them from here)

End Points

PATH METHODS
/form/v1/forms [GET, POST, PUT, DELETE]
/form/v1/fields [GET, POST, PUT, DELETE]
/form/v1/types [GET]
/form/v1/leads [GET, POST]