Search code examples
twiliotwilio-php

Make a blank response in twilio webhook


How can I make a blank response in twilio using php/laravel?

Here is a sample Twiml: <Response></Response>


Solution

  • This is the code that I have come up with (I'm using laravel):

    public function receivedSms(){
        $response = new Twiml();
    
        return response($response)
          ->header('Content-Type', 'text/xml');
    }