自给自足/subscribeform

Laravel 的订阅表单

1.0.16 2017-10-23 12:42 UTC

This package is auto-updated.

Last update: 2024-09-23 02:12:07 UTC


README

subscribeform - 一个用于订阅通知的包

如何安装

通过 composer 安装

composer require selfreliance/subscribeform

配置、迁移和 JavaScript

php artisan vendor:publish --provider="Selfreliance\subscribeform\SubscribeFormServiceProvider" --force

连接 JavaScript

<script src="{{ asset('js/core.js') }}"></script>

别忘了

php artisan migrate 

函数

use Selfreliance\subscribeform\SubscribeFormController;

SubscribeFormController::subscribed('example@gmail.com'); // check if subscribed return true or false

用法

	Transimt data to url (/subscribe or from config subscribeform) - method POST:
		- email (required)