GithubHelp home page GithubHelp logo

Comments (4)

tzsk avatar tzsk commented on August 25, 2024 1

@shiva-p17 Please see this issue: #11 . Update your package and tell me if your issue is fixed. If not, I will re-open the bug.

from sms.

tzsk avatar tzsk commented on August 25, 2024

@shiva-p17 Okay surely. I'll give it a look. But, it seems the problem is in the Request. No response is coming that's why it is not returning an array.

from sms.

parveennara avatar parveennara commented on August 25, 2024

Getting the same error in laravel 5.5 can u have a look, please

from sms.

karthiksk0062 avatar karthiksk0062 commented on August 25, 2024

To Fix array_merge(): Argument #1 is not an array

please remove array_merge() functionality on Textlocal.php send() as it's the case which arises response as error on when the mobile number to send SMS is registered as dnd on Trai.
Code has to be changed as mentioned below
public function send()
{
$numbers = implode(",", $this->recipients);

    $response = $this->client->request("POST", $this->settings->url, [
        "form_params" => [
            "username" => $this->settings->username,
            "hash" => $this->settings->hash,
            "numbers" => $numbers,
            "sender" => urlencode($this->settings->sender),
            "message" => $this->body,
        ],
    ]);

    $data = $this->getResponseData($response);

    return (object) $data;
}

Note: As I am using this package on my Laravel project when vendor folder get updated error arises so to fix this issue please change as soon as possible

from sms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.