Skip to content

Too few arguments to function #29

Open
@rusdyahmad

Description

@rusdyahmad

Curl

curl --location --request POST 'http://localhost:3000/id/messages/send' \
--data-raw '{
    "jid": "01234567890",
    "type": "group",
    "message": {
        "text": "Hello"
    }
}'

Convert

Http::withBody('{
    "jid": "01234567890",
    "type": "group",
    "message": {
        "text": "Hello"
    }
}')
    ->post('http://localhost:3000/id/messages/send');

ArgumentCountError

Too few arguments to function Illuminate\Http\Client\PendingRequest::withBody(), 1 passed in /vendor/laravel/framework/src/Illuminate/Http/Client/Factory.php on line 427 and exactly 2 expected

Laravel Framework 9.43.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions