lizhen_gitee 5a2b1d27f5 被忽略的 | há 7 meses atrás | |
---|---|---|
.. | ||
src | há 7 meses atrás | |
tests | há 7 meses atrás | |
.gitignore | há 7 meses atrás | |
.php_cs | há 7 meses atrás | |
.travis.yml | há 7 meses atrás | |
LICENSE | há 7 meses atrás | |
README.md | há 7 meses atrás | |
composer.json | há 7 meses atrás | |
phpunit.xml | há 7 meses atrás |
Set the type
to be easywechat-extension
in your package composer.json file:
{
"name": "your/package",
"type": "easywechat-extension"
}
Specify server observer classes in the extra section:
{
"name": "your/package",
"type": "easywechat-extension",
"extra": {
"observers": [
"Acme\\Observers\\Handler"
]
}
}
目前仅支持 Laravel
在 config/app.php
中添加 EasyWeChatComposer\Laravel\ServiceProvider::class
在本地项目的 .env
文件中添加如下配置:
EASYWECHAT_DELEGATION=true # false 则不启用
EASYWECHAT_DELEGATION_HOST=https://example.com # 线上域名