ray icon indicating copy to clipboard operation
ray copied to clipboard

Duplicate Email Records

Open altayevrim opened this issue 1 year ago • 3 comments

Describe the bug I created a simple Mail and Simple Notification to test on a brand new Laravel project generated by Herd.

Versions Ray version (you can see this in "About Ray"): 2.8.1

You can use composer show to get the version numbers of:

  • spatie/ray package version: -
  • spatie/laravel-ray package version (if applicable): 1.40.2

PHP version: Laravel version (if applicable): 12.7 PHP 8.2

To Reproduce Steps to reproduce the behavior:

User::first()->notifyNow(new TestNotification());

used the code above. And it displays two mail records on Ray app.

Expected behavior It shouldn't display more than one I guess.

Screenshots https://shottr.cc/s/1esm/SCR-20250415-n4s

Desktop (please complete the following information):

  • OS: macOS
  • Version 15.3.2

altayevrim avatar Apr 15 '25 13:04 altayevrim

Also in order to make sure the Controller does not called twice, I checked with ray()->count() and the output is this; https://shottr.cc/s/1yoq/SCR-20250415-nhf.png

altayevrim avatar Apr 15 '25 13:04 altayevrim

I just noticed this too. I was trying to debug in my code why it was being sent twice.

I changed from the log driver to smtp to send to Herd, and the email only is sent once. It's indeed Ray that shows it twice.

jasonvarga avatar Apr 30 '25 22:04 jasonvarga

I was about to do the same until I realized the project I was testing on just recently created. There's nothing I could do to achieve it by myself 😅😅

altayevrim avatar May 01 '25 10:05 altayevrim

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Sep 02 '25 10:09 spatie-bot