wechat playground
1.0.0
This is currently a test experience version, and the functions are not yet perfect. Feedback (Bugs, Features...) is welcome.
$ composer require mingyoung/wechat-playground:^1.0@dev
Publish front-end files after installation
$ 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 ' ,
]);
});
Then open the URL http://example.com/wechat-playground
WECHAT_PLAYGROUND_PATH=awesome