$clientId = "myid";
$clientSecret = "mysecret";
$redirectUrl = "http://localhost/aaa";
$config = new \SocialiteProviders\Manager\Config($clientId, $clientSecret, $redirectUrl);
return Socialite::driver('yandex')->setConfig($config)->redirect();