0

Am Working on laravel 9. I send notification using the notifiable trait and I wish to make some action only if the notification is.

How can I perform this!

thanks,

archille gael
  • 70
  • 1
  • 8

1 Answers1

0

I think You can check using Notification::failure()

if (Notification::failure() > 0){
  //your required function;
}
Roham Rafii
  • 2,929
  • 7
  • 35
  • 49