Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Berkayk\OneSignal\OneSignalFacade::send() #109

Open
umsuka opened this issue Dec 4, 2019 · 2 comments
Open

Call to undefined method Berkayk\OneSignal\OneSignalFacade::send() #109

umsuka opened this issue Dec 4, 2019 · 2 comments

Comments

@umsuka
Copy link

umsuka commented Dec 4, 2019

Hi

I am using Laravel 5.8 and v1.0 of this plugin. when I test it out with the code on read me I am getting this error :
Call to undefined method Berkayk\OneSignal\OneSignalFacade::send()

Here is my notification file config

//Import
use OneSignal;

public function __construct($ticket)
    {
        $this->ticket = $ticket;
    }

public function via($notifiable)
    {
        return ['mail', 'database','OneSignal'];
    }
 public function toOneSignal($notifiable)
    {
        \OneSignal::sendNotificationUsingTags(
            "Some Message",
            array(toArray(["key" => "company_id", "relation" => "=", "value" => $this->ticket->company_id])),
            $url = null,
            $data = null,
            $buttons = null,
            $schedule = null
        );
    }
@AbanNova
Copy link

I know this late ==> This happened because that you add another onesignal package which is it (Berkayk\OneSignal) and you have some conflicts due to (bad installation / or bad configuration / or error in importing) of either of these two packages.

@emmadedayo
Copy link

remove Berkayk\OneSignal\ at the top of your controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants