So i have a config file called services.php with content like
[
'facebook' => [ 'url' => 'https://...']
]
But i want to have it like this:
[
'facebook' => [ 'url' => url(route('socialite-callback', ['provider' => 'facebook']))]
]
However tinker with this like of code will report:
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
But if i use the first like, and then open tinker and paste this:
url(route('socialite-callback', ['provider' => 'facebook']))
it works fine