I am using “laravel/socialite”: “^3.0”, to facebook login. But it shows an error
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.
It happens when I am calling the below function in my login controller
public function socialLogin($social)
{
return Socialite::driver($social)->redirect();
}