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
0
votes
0 answers
Laravel real-time notification not showing into console from Pusher
I'm implementing Real-Time Notification in my Laravel project. I'm very close to achieve my goal. What I have done so far is I have saved the notifications into database and now wanted to render the same notification to user using Pusher.
I got…

Shaan
- 475
- 3
- 20
0
votes
4 answers
how do i access elements of an array in laravel?
I am trying to count the number of elements that are equal to a certain value but im struggling to get to the element that i want to compare, when i run:
{{dd($numberofnotifications)}}
I get the following:
But the value i need to compare is under…

es915
- 137
- 3
- 11
0
votes
2 answers
how do i count the number of unread notification in laravel that have a specific value
I am trying to count how many unread notifications i have in laravel that does not have a name value of the user that is logged in.
so far i have managed to do the following where i get the number of all the unread…

es915
- 137
- 3
- 11
0
votes
1 answer
How do i use a second value from my toArray function in laravel when creating a notification
I'm trying to get a users email and use it in my html code but I'm not sure how to do this, at the moment this is my code:
public function toArray($notifiable)
{
return [
'data' => $this->user->name. ' commented on your post',
…

es915
- 137
- 3
- 11
0
votes
2 answers
How do i change the data of my notification to be the data from the comment in laravel
I have set up notifications so that when a user comments on another users post the owner of the post receives a notification to let them know of the comment.
but at the moment the notification just says displays what is added to the return statement…

es915
- 137
- 3
- 11
0
votes
1 answer
Laravel Conditional Notifcations
I'm trying to send notifications to multiple users based on several conditions. If one or more conditions are met I'd like to add those users to the array of users that will be sent notifications. The issue is how do I add all of the users from each…

Mike
- 41
- 7
0
votes
1 answer
Laravel 8 Notifications - toSlack or toNexmo functions not firing
I am having an issue with Slack and Nexmo.
Both are specified in the via function, but it seems that upon trigger, Laravel isn't hitting the toSlack or toNexmo functions, or the routeNotificationForSlack function. I have tried to exit or print…

Katie Lacy
- 31
- 2
0
votes
1 answer
Laravel send same notification via different methods
I'm trying to ->notify() different users of the same type via different notification methods.
For example: I have TicketCompleted notification and its via() method contains: return ['mail', 'database'];. I also have both methods toArray() and…

Petyor
- 389
- 3
- 12
0
votes
1 answer
cURL error 60: Peer's Certificate issuer is not recognized. with Laravel Notification
I am trying to send a queued notification using the Laravel Queue but getting this error when I run this in my test site.
I am using cert generated by LetsEncrypt for https.
production.ERROR: cURL error 60: Peer's Certificate issuer is not…

user1647708
- 447
- 3
- 9
- 22
0
votes
2 answers
Class 'Swift_Mailer' not found in laravel 7
I am getting this error Class 'Swift_Mailer' not found while registering a new user. I have enabled MustVerifyEmail on my User model.
I am using mailtrap and Here is my mail…

Amit Kollol Dey
- 41
- 6
0
votes
2 answers
How can I send a notification in Laravel to a user that is not currently logged in?
I'm building a Job Search type of application. There are two types of users, job seekers and employers where each has their own Role. When an Employer is logged in he can browse through the profiles of candidates and request an interview. He can…

Ryan Sacks
- 498
- 1
- 8
- 38
0
votes
1 answer
Should I implement shouldQueue for every single notification
I have a job class called NotifyUsersJob this class, of course, implements shouldQueue interface which is the default queue class that Laravel gives me.
In the handle method, I have this logic.
Notification::send($this->users, new…

Mustafa Omar
- 399
- 4
- 15
0
votes
1 answer
Running an import job in the queue and letting the user know when import finished
I have an system that lets a user import their bank statements as CSV file. The import is queued as a job in the background. However, I want to notify the user to let them know when their import is finished. How can I do this with Laravel queues and…

rebellion
- 6,628
- 11
- 48
- 79
0
votes
1 answer
How to change laravel notification user model receiver?
We have an API which connects to our own first party applications. Our API is sending out notifications based on user actions or if there is an update to the application etc.
Our API is modular structured.
Example
Our user model in API is located…

z0mbieKale
- 969
- 1
- 14
- 44
0
votes
1 answer
How to get the token value in the DB for notifications in Laravel
I am trying to get the token from ConfirmUserToken and attach it to the URL in the notification. I am trying to create a custom validation in laravel. When I used $notifiable->token, it gives me no result. How can I access the…
user5405921