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
0
votes
1 answer

Laravel Auth, Passing user credentials to Notification Class after registering

I am trying to pass User details to my notification so I can say: Dear User name, but couldnt figure it how. Also, I am looking forward to getting the default URL when verifying the user. So, basically I only wanted to change the first ->line() in…
0
votes
2 answers

How to handle failed jobs on queueable notifications

When using queueable notifications: class MyNotification extends Notification implements ShouldQueue { use Queueable; } How do I handle failed jobs? If I'd have dispatched the email/notification via a job class I could use the failed…
Alex
  • 6,497
  • 11
  • 47
  • 58
0
votes
1 answer

Norifications:: not passing the specific data but working with array

i have a problem in Notification send email i cant get the specific data when i tried to get the data specific like $this->equipment->id its not working but if i used $this->equipment it will display the array data in my controller …
0
votes
1 answer

How to Create Model with Notifiable Trait

I want create a Model with Notifiable feature, First,in my controller : $collection = collect([ [ 'name' => 'user1', 'email' => 'user1@gmail.com', ], [ 'name' => 'user2', 'email' => 'user2@gmail.com', ], [ …
Amir Ali
  • 7
  • 5
0
votes
1 answer

Laravel Notification or Mailable for friend request/accept

Suppose that we have a social website that users can follow each other. Is it a better idea to use Laravel Notification to notify the user that someone wants to follow him or someone accepted his follow request or Laravel Mailable instead? I have…
Majid Alaeinia
  • 962
  • 2
  • 11
  • 27
0
votes
0 answers

Laravel notification facebook driver get fb_messenger_user_id

I want to give users the ability to get notifications via the facebook messenger. However, I don't really know how to get the fb_messenger_user_id from a user. I can get a personalized ID for the chat if a user starts chatting with my bot, but with…
0
votes
2 answers

Laravel 5.7 Notification ->line there is no option to escape html but it was working in 5.5

I have the same code notification in Laravel 5.5 and 5.7, for Laravel 5.5, I am able to use in ->line, but in 5.7 it will escape it. In my notification blade view file, I set {{ ]} or {!! !!}, I still can't display html in my email. In…
Shiro
  • 7,344
  • 8
  • 46
  • 80
0
votes
1 answer

Laravel notifications are not being saved when using custom channel

I have done this (https://laravel.com/docs/5.7/notifications#database-notifications), I ran the migration, I created a toArray() and a toDatabase() functions in the notification, and the notifications are correctly being sent, however, notifications…
andreshg112
  • 582
  • 1
  • 8
  • 20
0
votes
1 answer

Laravel notification class not pass variable

I can't pass sendSms to toHistory method. It is always set as false. How can I do it properly? class SendMessage extends Notification implements ShouldQueue { use Queueable; public $sendSms; public function via($notifiable) { …
pelcomppl
  • 575
  • 2
  • 6
  • 16
0
votes
2 answers

How can I send email and SMS together using Laravel 5.5?

How can I send email and SMS together using Laravel 5.5 ? Should I use mailable and SMS service or Notification with SMS and How ?
Sarita Sharma
  • 253
  • 2
  • 8
  • 19
0
votes
1 answer

How to delete delayed notification in Laravel 5.6 using redis queue

I'm using laravel notifications (https://laravel.com/docs/5.6/notifications) with redis queue. They all implement ShouldQueue but only some of them have to be delayed (reminders). However, when I delete object that is related to notification, I also…
0
votes
2 answers

Laravel - Notification Customizing

So I'm sending mails with using Laravel notification. It can be very easy question but I couldnt find any answer. When I check the mails in my e-mail, the header part or i dont know how to describe it has always tag : "example". What I should add to…
Berke
  • 672
  • 3
  • 16
  • 31
0
votes
1 answer

Laravel 5.5 - Notifications/Subnotifications for 1 million followers?

I use a notifications table and a subnotifications table, and I am also using queues so it runs in the background when a user posts something. When a user has 10 followers and they create a post, the notifications table gets a single entry which…
Wonka
  • 8,244
  • 21
  • 73
  • 121
0
votes
1 answer

OctoberCMS: How to make the User model notifiable?

The RainLab\User\Models\User class does not use the Notifiable trait and therefore it's not possible to call notify or Notification::send on it. I want to write a plugin that extends the RainLab\User\Models\User and adds Notifiable trait to it. How…
B Faley
  • 17,120
  • 43
  • 133
  • 223
0
votes
1 answer

Why email sender in env staging server not update if I use shouldqueue on notification laravel?

I use laravel 5.3 If class on the notification like this : class UserRegistered extends Notification implements ShouldQueue I edit email sender in env, then I check send email, the email sender not update If class on the notification like this…
moses toh
  • 12,344
  • 71
  • 243
  • 443
1 2 3
9
10