src/User/LoginProvider.php
public static function logIn(string $provider, string $identifier): ?User
    {
        if ($provider = static::where(compact('provider', 'identifier'))->first()) {
            $provider->touch();

            return $provider->user;
        }

        return null;
    }
public static function logIn(string $provider, string $identifier): ?User
    {
        if ($provider = static::where(compact('provider', 'identifier'))->first()) {
            $provider->touch();

            return $provider->user;
        }

        return null;
    }
public static function logIn ( string $ provider , string $ identifier ) : ? User { if ( $ provider = static :: where ( compact ( 'provider' , 'identifier' ) ) -> first ( ) ) { $ provider -> touch ( ) ; return $ provider -> user ; } return null ; }
Get the user associated with the provider so that they can be logged in.

@param string $provider
@param string $identifier
@return User|null
Get the user associated with the provider so that they can be logged in .