Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

lumen使用laravel/passport的问题

lumen使用laravel/passport,按照官方文档调用oauth/token可以生成token,但是调用别的路由会报错,比如调用oauth/clients会报500错误并提示

clipboard.png

然后我找到了CreatesUserProviders这个文件

clipboard.png

但是不知道这个下面应该去返回什么是调用什么中间件吗


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

已解决,修改auth配置文件中的driver值为eloquent,这个问题我之前看文档没有看仔细


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...