Laravel - HTTP Client - Request Data

Of course, it is common when making POST, PUT, and PATCH requests to send additional data with your request, so these methods accept an array of data as their second argument. By default, data will be sent using the application/json content type:

    use Illuminate\Support\Facades\Http;
    $response = Http::post('', [
        'name' => 'Steve',
        'role' => 'Network Administrator',