- //采用代理跳转,从PC端微信登录
- Route: :get(' / login',
- function() {
- return Socialite: :with('weixin') - >setProxyUrl('http: //proxy.your.com')
- - >setRedirectUrl(url(' / login / notify')) - >redirect();
- });
- //采用代理跳转,从手机端微信登录
- Route: :get(' / login2',
- function() {
- return Socialite: :with('weixin') - >setProxyUrl('http: //proxy.your.com')
- - >setDevice('') - >setRedirectUrl(url(' / login / notify')) - >redirect();
- });
- //不采用代理跳转,从PC端微信登录
- Route: :get(' / login',
- function() {
- return Socialite: :with('weixin') - >setRedirectUrl(url(' / login / notify')) - >redirect();
- });
- //不采用代理跳转,从手机端微信登录
- Route: :get(' / login4',
- function() {
- return Socialite: :with('weixin') - >setDevice('') - >setRedirectUrl(url(' / login / notify')) - >redirect();
- });
来源: http://www.bubuko.com/infodetail-1868608.html