wechat playground
1.0.0
目前為測試體驗版本,功能未完善,歡迎回饋(Bug, Feature ...)
$ composer require mingyoung/wechat-playground:^1.0@dev
安裝後發布前端文件
$ php artisan vendor:publish --tag=wechat-playground-assets --force
use WeChatPlayground Playground ;
use Illuminate Http Request ;
use EasyWeChat Factory ;
Playground:: use ( function ( Request $ request ) {
return Factory:: officialAccount ([
' app_id ' => ' wx13123456789e20 ' ,
' secret ' => ' d88e35627234289348743ba9590c32 ' ,
]);
});
然後開啟網址http://example.com/wechat-playground
WECHAT_PLAYGROUND_PATH=awesome