portedcheese / ajax-forms
通过ajax提交联系表单
v2.0.0
2024-08-21 06:53 UTC
Requires
This package is auto-updated.
Last update: 2024-09-21 07:14:21 UTC
README
描述
提供通过具有类名sending-form
(这是用于webflow-integration)和sending-form-custom
的任何表单通过ajax发送并将其保存在网站上的功能。
在网站上预先创建表单及其字段。每个表单都有一个页面来显示该表单的消息。
安装
需要导出具有类名sending-form
和sending-form-custom
的表单发送js。
php artisan vendor:publish --provider="PortedCheese\AjaxForms\AjaxFormsServiceProvider" --tag=public --force
php artisan migrate
php artisan make:ajax-forms
{--all : Run all}
{--controllers : Export controllers}
{--models : Export models}
{--policies : Export and create rules}
{--only-default : Create default rules}
{--js : Include js}
{--sass : Include scss}
{--menu : Config menu}
配置
导出配置
php artisan vendor:publish --provider="PortedCheese\AjaxForms\AjaxFormsServiceProvider" --tag=config