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
1 answer
Laravel notification toArray() not saving data to notifications table
I am unable to get database notification option to work. No information is saved to the database, there's no error and nothing shows on Laravel Telescope.
This is my notification code:

Adefowowe
- 198
- 2
- 14
0
votes
1 answer
Laravel 8 doesn't send an email notification when notifications are set to job
I am trying to send a notification via email. Everything is fine as long as I don't want to do it on the job.
When I add implements ShouldQueue to the notification class, the task fails with the error Swift_TransportException: Cannot send message…

user17279031
- 13
- 3
0
votes
1 answer
Access individual data in a collection passing to Notification method
I have queried a list of users based on a filter to send out notifications and i want to use this collection method to send out the notification.
Collection method
As in the documentation i pass the users collection to the notification and my post…

Орлов Владлен
- 103
- 10
0
votes
1 answer
Laravel Notifications email applied class to line() is extended to all body
I have applied Laravel Notifications email template to send email when a comment is applied. Here the code:
$mailmessage= (new MailMessage)
->line( __('messages.hello').' '.$this->arr['user'].',')
->line($this->arr['created_by'].'…

Echecivuole
- 93
- 1
- 11
0
votes
0 answers
Laravel mail layout issue when adding attachement
Having a problem with mail layout when adding an attachment
The layout goes to the right and keep empty space in the left side
It happens just when i add an attachment and have this problem in gmail application
show image

Ali Abu Arab
- 21
- 1
- 3
0
votes
1 answer
Using markdown in Mailable: Passing an $environment into the "CommonMarkConverter" constructor is deprecated
What I want to archive: I'd like to create a Zammad ticket using the Zammad-api but also parse markdown.
To do so, I created a custom channel to send a notification to the Zammad Helpdesk system using Zammad's API.
This is the specific…

SPQRInc
- 162
- 4
- 23
- 64
0
votes
0 answers
Cannot install laravel-notification-channels/clickatell
When I try to install the notification channel laravel-notification-channels/clickatell it gives me the error below.
How can I clear it?
- Root composer.json requires laravel-notification-channels/clickatell ^0.1.4 -> satisfiable by…

Shuast
- 15
- 6
0
votes
1 answer
Laravel Anonymous Notification - How to get route value from Laravel Notification::route() function?
Notification::route('sms', $mobileNumber)->notify(new SmsNotification($content));
Optimally you should use routeForNotificationSms in your Notifiable model (eg: User) to obtain the value of the route.
But since I am sending the notification to…

Prem Arumugam
- 47
- 7
0
votes
1 answer
How to notify all admins by selecting the status_id of the records from the specified table when the user updated the record via e-mail
I using Laravel 7 and I have the topics table that I have 5 status these statuses
they are the foreign key from the statuses table.
Topics Table
id
topic
owner_id
status_id
1
A
1
2
2
B
2
6
3
C
3
2
4
D
4
6
Statuses…

Jill
- 49
- 6
0
votes
2 answers
Laravel Notifications Mark One Notification as Read
I'm new to laravel notification
I want when to click on the notification the link takes me to the invoice and the notification should be marked as read
I don't know how to mark one notification as read.
I know that I should take the notification id…

Sara Tabbassi
- 81
- 10
0
votes
1 answer
Laravel send notification to different notifiables based on send methods
I have an application that sends notifications to admins on some user's actions. some admins should notify by SMS and others just via database.
what is the best way to do this? use two notifications or just one? I didn't found any way to change…

Pooria Anvari
- 3
- 1
0
votes
1 answer
where I can Change FCM web notification click action url?
I tried to define the url which opens when user click on notification but it continue go to url('/')
only . I send the new url with payload.data but I did not know where I can define this route in the client side so it opens when user click…

amin mohamed
- 53
- 1
- 7
0
votes
0 answers
Laravel 5.5 Mass assignment exception error id on Laravel notification
I have a project in Laravel 5.5 and I am using Laravel notification.
I want to send a notification to users when a product is added but when I use the notification, it gives me a mass assignment exception error id.
I think I don't have an error on…

Akhlaqi
- 1
- 2
0
votes
1 answer
Laravel Slack Notification not sent when using implements ShouldQueue
I am struggling with dispatching a Slack notification when the Notification class implements ShouldQueue.
This is how I dispatch the notification
/**
* Handles the sendout of booking request confirmation to the customer
*
*…

Christoph Beger
- 135
- 2
- 14
0
votes
1 answer
Push notification with pusher beam, unable to send data/payload
I am using following php sdk for generating pusher beam push notification. but there is not information provided in the sdk docs on how to send data/payload along with it. the notification is bean sent correctly but I am unable to send data: please…

Qasim Nadeem
- 597
- 4
- 17