Duplicate Email Records
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
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
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.
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 😅😅
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.