Guzzle Not Sending Grant Type to Laravel Passport



PHP Snippet 1:

public function attemptLogin(Request $request)
    {
        $core_client_id = env('CORE_CLIENT_ID');
        $core_client_secret = env('CORE_CLIENT_SECRET');
        $username = $request->input('username');
        $password = $request->input('password');

        $data = array(
            'grant_type' => 'password',
            'client_id' => $core_client_id,
            'client_secret' => $core_client_secret,
            'username' => $username,
            'password' => $password,
            'scope' => '',
        );
        return $this->performRequest('POST','/oauth/token', $data);
    }

PHP Snippet 2:

$core_client_id = env('CORE_CLIENT_ID');
    $core_client_secret = env('CORE_CLIENT_SECRET');
    $username = $request->input('username');
    $password = $request->input('password');

    return $this->performRequest('POST','/oauth/token', [
        'form_params' => [
            'grant_type' => 'password',
            'client_id' => $core_client_id,
            'client_secret' => $core_client_secret,
            'username' => $username,
            'password' => $password,
            'scope' => '',
        ],
    ]);