Comments (12)
更新到新版试试:
composer require overtrue/socialite:^4.5.1
from socialite.
好了,顺便问下,因为做个APP和网站,所以加了微信的别名,这里怎么获取provider的名称啊
$userInfo = Socialite::create($request->input('platform'))->userFromCode($request->input('code'));
$userInfo->getProvider(); //这里获取的是类名,我看到里面有个NAME,但不知道怎么获取
'wechat' => [
'provider' => 'wechat',
...
],
'wechat-pc' => [
'provider' => 'wechat',
...
]
from socialite.
$userInfo->getProvider()::NAME;
from socialite.
会不会很难看0.0
from socialite.
欢迎 PR。
from socialite.
Undefined constant "Overtrue\Socialite\Contracts\ABNF_APP_ID"
一样的错误
from socialite.
@yushine 啥版本?
from socialite.
@overtrue facebook mapUserToObject 方法, 第一行的 Contracts\ABNF_ID 自动加载会有问题,google不会有问题,因为 User implements Contracts\UserInterface 会正常加载
from socialite.
from socialite.
版本号多少? yushine @.>于2022年10月17日 周一09:34写道:
…
@overtrue https://github.com/overtrue facebook mapUserToObject 方法, 第一行的 Contracts\ABNF_ID 自动加载会有问题,google不会有问题,因为 User implements Contracts\UserInterface 会正常加载 Facebook: [image: image] https://user-images.githubusercontent.com/728951/196070792-7bfd1b44-91d2-4f1b-8ba8-8b1cf41b76f3.png Google: [image: image] https://user-images.githubusercontent.com/728951/196071025-d909bf5d-7910-4b8a-b6ca-d87fa21b558f.png — Reply to this email directly, view it on GitHub <#248 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALHOYBBA6H6Z4MPSMJOZFDWDSUJ7ANCNFSM6AAAAAAQRUJNXQ . You are receiving this because you were mentioned.Message ID: @.>
4.5.1 和 4.6.x 都一样报错
from socialite.
@yushine 你在什么场景下用的,代码贴一下?
from socialite.
@overtrue 和 readme 的代码一致
from socialite.
Related Issues (20)
- 希望大神升级下飞书的授权登录
- 微信PC扫码登陆,会显示蓝色的网址,然后跳转 HOT 2
- 飞书平台的 mapUserToObject 里的id v2是open_id,v3这里是user_id HOT 2
- php版本为什么要7.4有点高吖。。。 HOT 1
- 第三方平台获取公众号授权BUG HOT 2
- GoogleProvider报错 HOT 2
- 抖音 tokenFromCode 方法中参数名拼写错误
- readme为啥不写中文? HOT 2
- Branch 2.x release needed HOT 2
- \Overtrue\Socialite\Providers\WeChat::userFromCode行为应与父类保持一致 HOT 1
- symfony/http-foundation HOT 3
- 可以增加企业微信登录吗 HOT 1
- 请问此插件与 laravel/socialite 的区别是什么?
- phpstan Call to an undefined method withState
- 希望支持企业微信的扫码授权登录 HOT 5
- 建议使用`$.autoload.files`定义来优化命名空间常量的自动加载 HOT 1
- 请问转跳授权可以携带参数吗?比如邀请人的信息 HOT 4
- 线上环境会报SSL verify failed HOT 1
- Create tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socialite.