berkayk / laravel-onesignal

OneSignal Push Notifications for Laravel
501 stars 176 forks source link

call to undefined function tap #92

Open manojrammurthy opened 5 years ago

manojrammurthy commented 5 years ago

Hi i have integrated your library in october cms plugin and it shows Call to undefined function Berkayk\OneSignal\tap() on testing this is generated when called via sendnotofications method any reason to for this and how to solve it

moutonpieter commented 5 years ago

Same issue over here. Using laravel 5.1 and running php 7.1 on a local MAMP.

moutonpieter commented 5 years ago

Ok, weird. I changed nothing and right now it works...

manojrammurthy commented 5 years ago

i was not able to figure it out so doing it via rest api calls directly

jerearaujo03 commented 5 years ago

Did you solve it?

niklaz commented 5 years ago

It looks like tap() helper function is implemented from Laravel v5.5, that means this library is not compatible with versions below 5.5