Laravel provides support for sending notifications across a variety of delivery channels, including mail, SMS (via Nexmo), and Slack. These notifications are informational messages that notify users of something that occurred in your application.
Questions tagged [laravel-notification]
143 questions
2
votes
1 answer
Laravel 5.7 sending notifications using Expo
I'm using Laravel 5.7 for my backend (I'm new to Laravel) and I'm trying to use Expo push notification extension for Laravel to send notifications to my users.
I followed the steps explained, but I get lost to where I'm suppose to place the class…

Salman
- 1,109
- 3
- 25
- 55
2
votes
1 answer
Laravel Horizon Long Wait Detection Setup - Not able to extend wait time
I am using Laravel 5.6 and Horizon 2.0. My Horizon setup is as follows:
config/horizon.php
'waits' => [
'redis:default' => 600,
'redis:default_long' => 600,
'redis:drip_feed' => 600,
'redis:wms' => 600,
…

Adam Lambert
- 1,311
- 3
- 24
- 45
2
votes
0 answers
The email of the notification being sent is not working in a Laravel unit test
I am developing a Laravel application. I am doing unit test. But having a bit of a problem of testing the email being sent.
My test code is something like this.
public function test_something()
{
Mail::fake();
//other test code
…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
2
votes
1 answer
Create a Notification System Based on User Preferences
I am trying to develop a notification system, but I am not sure if I do certain parts correctly. To simplify the case I will use some generic naming.
How the system should work:
A registered user can subscribe for notifications based on chosen…

Kavvson Empcraft
- 445
- 7
- 32
2
votes
0 answers
Laravel 5.5 - Notification channels different queue names?
In an event listener, I send a notification to a dog owner like this:
$event->dogowner->notify(new DogWasWalkedNotification);
The issue is since there are two channels database/mail set in the Notification below, they both get added as queued jobs…

Wonka
- 8,244
- 21
- 73
- 121
2
votes
2 answers
How setup laravel-notification-channels/webpush
I have installed https://github.com/laravel-notification-channels/webpush
in my project but when send notifications there are nothing. It doesnt work
This is laravel notifications documentation: https://laravel.com/docs/5.5/notifications
This is my…

kouakou alexy
- 151
- 2
- 12
2
votes
2 answers
How do you change the sorting of Laravel Notifications
I am printing the notifications for a Model in Laravel 5:
@foreach ($booking->notifications as $notification)
2
votes
1 answer
Laravel queueable notification errors: Serialization of 'Closure' is not allowed
I've created a mail notification that works successfully, but when trying to queue it, I get the following error:
Uncaught Exception: Serialization of 'Closure' is not allowed in /vendor/laravel/framework/src/Illuminate/Queue/Queue.php:125
Below is…

Brian Glaz
- 15,468
- 4
- 37
- 55
2
votes
2 answers
Laravel Notifications: Mail (Mailgun) Response on NotificationSent event
I am using Mailgun as a mail driver in my laravel application, as well as nexmo for SMS purposes.
What I am trying to achieve is to maintain the delivery status of the notifications that are sent either via Mailgun or Nexmo. Incase of Nexmo I am…

Ammadu
- 1,675
- 15
- 17
1
vote
1 answer
How should I handle Laravel notification in the microservices architecture?
I had a monolithic application and now, I want to separate this application into multiple services.
For example, consider the User and the Notification services that two of them will be written with PHP and Laravel framework.
Now I want the…

Hanie Asemi
- 1,318
- 2
- 9
- 23
1
vote
0 answers
Broadcast event to Pusher when database notification is created
This is related to an earlier question I asked: Am I overcomplicating events/listeners/notifications?.
Based on the feedback received on that question, I modified my approach to attempt to do the following:
Fire a database notification.
Listen for…

hyphen
- 2,368
- 5
- 28
- 59
1
vote
1 answer
How to send notification to specific user in Expo/Laravel
I have an Expo app with a Laravel backend and I want to send notifications to the app. But the condition is that only a specific user can receive it.
I installed the Following library Exponent Notifications
I've Installed expo-notifications as…

Gursahb Webcyst
- 93
- 8
1
vote
1 answer
Questions about Laravel Notifications
I have configured it to send notifications to users who can be members or non-members.
Notifications are sent via email, database, and broadcast.
At this time, if the user is a member, he will receive a notification through e-mail, database, and…

dvlpr91
- 11
- 3
1
vote
2 answers
How to call custom made function using via parameter in laravel notification?
devs,I am using laravel 8 I create a notification inside that I made my own funciton toTwilio mention below code.
Problem: how can I call that function. I include in return parameter of via() function
but it shows me "driver [twilio] not…

Bhimani Rutvik
- 398
- 2
- 13
1
vote
1 answer
How to test that a mailable was sent from a notification?
What's the secret of testing a mailable was sent from a notification?
Testing the notification:
it('does send notification when model is deleted', function() {
Notification::fake();
$this->model->delete();
…

DarkLeafyGreen
- 69,338
- 131
- 383
- 601