我正在使用「laravel/socialite」:「^ 3.0」,來登錄facebook。但它表明 錯誤Laravel 5.5社交網站集成顯示錯誤formatRedirectUrl()必須是數組類型,null給出
Type error: Argument 1 passed to Laravel\Socialite\SocialiteManager::formatRedirectUrl() must be of the type array, null given, called in /var/www/html/mas/vendor/laravel/socialite/src/SocialiteManager.php.
當我打電話下面的函數在我登錄控制器
public function socialLogin($social)
{
return Socialite::driver($social)->redirect();
}
我在我的配置/ services.php。但它不能從vendor/laravel/socialite/src/SocialiteManager.php中讀取。我可以訪問services.php中的所有其他數組,除了facebook憑據。我不知道爲什麼。 –