所以我有一个名为的配置文件,services.php其内容如下
[
'facebook' => [ 'url' => 'https://...']
]
但我想要这样的:
[
'facebook' => [ 'url' => url(route('socialite-callback', ['provider' => 'facebook']))]
]
然而tinker,这样的代码会报告:
Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /laravel/justitalianwine_ecommerce/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 68
但如果我使用第一个喜欢,然后打开tinker并粘贴此:
url(route('socialite-callback', ['provider' => 'facebook']))
效果很好
慕尼黑8549860