Questions tagged [laravel-notification]

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.

143 questions
1
vote
0 answers

How to send notification to specific users using Laravel Scheduler?

I ask this question while I have done researches to find clear solution for this problem but many of available answers are just how to use Laravel Scheduler itself! So I am creating a simple website with Laravel to let users create reminders for…
1
vote
1 answer

Specifying queue name for Laravel notifications

I'm building a SAAS and I want each tenant to have their own queue for notifications. I have a notification class that implements Illuminate\Contracts\Queue\ShouldQueue and I send the notification like this $user->notify($notification); But I…
Chris
  • 4,277
  • 7
  • 40
  • 55
1
vote
2 answers

how do i delete a notification in laravel when a user deletes the comment related to the notification

I have set up my website to send a notification to the owner of a post when another user comments on the post saying '"name of the user" commented on your post' I need to be able to delete this notification if the user that made the comment deleted…
es915
  • 137
  • 3
  • 11
1
vote
1 answer

Not receiving Slack interactive payload

I have set up a notification with action buttons, but I do not receive the in interactive payload. I have configured the webhook URL here: When I post to that URL in Postman everything is fine. But when I press the buttons I get no callback to that…
Pelmered
  • 2,727
  • 21
  • 22
1
vote
2 answers

Cannot listen to pusher private channel using laravel and vue js

I have a created a notification system with all setup and its working fine when i send notification to pusher. But when I try to listen on private channel I get error. Here is my bootstrap.js file laravel-echo code import Echo from…
Pashupati Sah
  • 426
  • 5
  • 9
1
vote
1 answer

How to check mail is send successfully or not and save status in laravel notification?

I'm using laravel notifications for sending email and save to database. How to check mail status after sending email and how to save it in the notification table? public function via($notifiable) { return ['mail', DbChannel::class]; } public…
fatemeh sadeghi
  • 1,757
  • 1
  • 11
  • 14
1
vote
1 answer

Laravel schedule push notification and cancel it if necessary

In my app with Laravel on back-end users can send messages to each other. I want to send push notification to app users on new inbox message, but I need to send messages only if user hadn't already read this message. So I see it that way On every…
1
vote
1 answer

Display Laravel Notification (MailMessage) with markdown after sent

I'm saving every email I send to an entity into the database by creating a function storeEmail and make an insert of MailMessage class into EmailMessage model. Everything works fine, and the main goal is to display the message exactly as it was,…
diakosavvasn
  • 854
  • 1
  • 8
  • 22
1
vote
1 answer

Laravel Auth, Getting the default URL that is passed in Notification

I just wanted to change the ->greeting() in notification in my toMail() function of the default auth after registering. I want to retain the verify URL and etc. But I am stucked. If I override the sendEmailVerificationnotification() the whole mail…
1
vote
0 answers

Undefined variable in Blade template used in a Notification

I have a message.blade in which I'm trying to access a variable set in my Notification class: {{ $testVar }} Class SimpleMessage has a toArray method that looks like this: public function toArray() { return [ 'level' => $this->level, …
Sherlock
  • 7,525
  • 6
  • 38
  • 79
1
vote
1 answer

How to get data out of the notifications?[Error retrieving data] laravel 5.8

When ever a user post on a thread its send an notifications and then form the navagition bar there is an drop down menu where the user can see all his notifications, but when I try to open it it gives an error Undefined index: thread (View: …
HashtagForgotName
  • 651
  • 1
  • 7
  • 23
1
vote
1 answer

Best practise to use code on every page in Laravel

I'm looking for the best practise to implement user notifications in "app.blade.php" layout. The Layout should always check for user notifications and I don't want to implement in every Controller. Thanks for your ideas.
Smoky
  • 127
  • 1
  • 2
  • 12
1
vote
2 answers

Laravel 5.7 Multilogin SendEmailVerificationNotification error

I'm new to Laravel. I just created a custom login with laravel 5.7. When I tried to reset password I'm getting this error: "Declaration of App\Employee::sendEmailVerificationNotification($token) should be compatible with …
Leel K
  • 70
  • 1
  • 10
1
vote
1 answer

Laravel notification serialization problem

I am using Laravel Notification to notify users about certain things. Everything works as expected but there are certain cases where I get the next error. (1/1) InvalidPayloadException Unable to JSON encode payload. Error code: 5 The thing that I…
1
vote
0 answers

Laravel email notification not updating content

Email notification content is not updating when making changes on the Notification class. Tried php artisan view:clear php artisan queue:restart php artisan cache:clear but content still not updating.