laravel-admin微信扫码录.
$ composer require lsshu/laravel-admin-wxcode-login-ext
$ php artisan vendor:publish --provider="Lsshu\LaravelAdminWxcodeLoginExt\ServiceProvider"
$ php artisan migrate
打开文件 config/admin.php
'auth' => [
// 如果配置文件config/code_login.php `route.options.prefix` 配置了,请在下面设置相应值
'redirect_to' => 'code_login', // {prefix}/code_login
],
'account'=>[
'appId'=>env(strtoupper(substr(basename(__FILE__),0,strrpos(basename(__FILE__),'.'))).'_ACCOUNT_APPID',''),
'appSecret'=>env(strtoupper(substr(basename(__FILE__),0,strrpos(basename(__FILE__),'.'))).'_ACCOUNT_APPSECRET',''),
], // 微信公众号配置
打开文件 .env
添加相应微信公众号配置
ADMIN_ACCOUNT_APPID=
ADMIN_ACCOUNT_APPSECRET=
###特别注意
安装完成后,管理员可能需要手动将用户表(如:admin_user)的“wechat_user_info_id”字段修改为“1”
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
MIT