Laravel 8 可选参数
2021-07-26 10:01 更新
许多 OAuth providers 支持重定向请求中的可选参数。 要在请求中包含任何可选参数,请使用关联数组调用 with 方法:
return Socialite::driver('google')
->with(['hd' => 'example.com'])
->redirect(); 注意:注意:使用
with方法时,注意不要传递任何保留的关键字,例如state或response_type。
以上内容是否对您有帮助:

免费 AI IDE


更多建议: