laravel-notification-channels / webhook

Webhook notifications channel for Laravel
https://laravel-notification-channels.com
MIT License
170 stars 61 forks source link

On-Demand Notifications #31

Closed lachlanhickey closed 4 years ago

lachlanhickey commented 4 years ago

Is there a method of using the WebHook function with the laravel 'on-demand' notification function?

Something like this? Notification::route('webhook', 'HTTP-POST-URL')->notify(new SendSMS());

atymic commented 4 years ago

That should work, are you having is with that?

lachlanhickey commented 4 years ago

Yes, it's just not posting.

I'm not sure what I'm doing wrong. I have tried other laravel-notification-channels with this method successfully.

I'm not getting anything posted to the URL, and no error either..

atymic commented 4 years ago

What did the issue end up being?

lachlanhickey commented 4 years ago

I have no idea @atymic . It just started working. Possibly something to do with my queues.

lachlanhickey commented 4 years ago

@atymic I'm having this issue again on laravel version 7, any thoughts?

HamzaDevz commented 4 years ago

Same issue here in laravel v7

lachlanhickey commented 4 years ago

@HamzaDevz try changing your casing on your code. In L7 it changes from an upper case 'Webook' to 'webhook'.

From: Notification::route('Webhook', 'HTTP-POST-URL')->notify(new SendSMS());

To: Notification::route('webhook', 'HTTP-POST-URL')->notify(new SendSMS());