Level 11
@gouseferoz i think there is no any direct function, but you can do it with first all configured guards and check one by one with the Auth. Hope this works for you.
$guards = array_keys(config('auth.guards'));
foreach ($guards as $guard) {
if (Auth::guard($guard)->check()) {
// $guard is the name of the guard that has authenticated the user
// You can now perform your redirect based on $guard
}
}