ktnw / wechat_support
WeChat login component for laravel
dev-master
2022-04-11 07:42 UTC
Requires
- ext-json: *
- illuminate/database: ~5.0|~6.0|~7.0|^8.0
- illuminate/routing: ~5.0|~6.0|~7.0|^8.0
- illuminate/support: ~5.0|~6.0|~7.0|^8.0
This package is auto-updated.
Last update: 2025-03-11 14:18:51 UTC
README
介绍
WeChat login component for laravel
集成说明
- 微信登录
使用说明
引入
composer require ktnw/wechat_support
发布
php artisan vendor:publish --provider="Ktnw\WechatSupport\Providers\WeChatSupportServiceProvider"
修改相关class的namespace
php artisan support:wechat
配置weChatConfig.php
表迁移(wechat_users表、jsapi_ticket表、access_token表)
php artisan migrate --path database/migrations/2022_02_22_153342_create_wechat_user.php
php artisan migrate --path vendor/ktnw/wechat_support/database/migrations/2022_02_11_145423_create_wx_jsapi_ticket_table.php
php artisan migrate --path vendor/ktnw/wechat_support/database/migrations/2022_02_11_150318_create_wx_access_token_table.php
- 根据实际业务需求,自行完善和扩展WeChatLoginController.