Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel

In our job portal, every time a candidate applied for a job, we sent an email to the recruiter right away.

At first, this was fine. Recruiters got updates quickly. But when more people started applying, recruiters with popular jobs were getting dozens…


This content originally appeared on DEV Community and was authored by KILLALLSKYWALKER

In our job portal, every time a candidate applied for a job, we sent an email to the recruiter right away.

At first, this was fine. Recruiters got updates quickly. But when more people started applying, recruiters with popular jobs were getting dozens or even hundreds of emails in one day.

Their inbox became full of “clone” emails. Many recruiters felt annoyed and started to ignore the notifications.

We needed a better way.

The answer? Send one daily summary email instead of many small ones.

Too Many Emails

Notification::route('mail', $recruiter->email)
->notify(new ApplicationNotification($application));

This sends one email per application. With 100 applicants → 100 emails. Inbox spam. Recruiters will not happy.

New Way : Daily Summary Notification

Instead of sending one email each time, we gather all applications for a recruiter during the day and send one notification in the evening.

use App\Models\Recruiter;
use App\Models\Application;
use App\Notifications\ApplicationNotification;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

class SendDailyApplicationSummary implements ShouldQueue
{
    use Dispatchable, Queueable;

    public function handle()
    {
        Recruiter::chunk(100, function ($recruiters) {
            foreach ($recruiters as $recruiter) {
                $applications = Application::where('recruiter_id', $recruiter->id)
                    ->whereDate('created_at', today())
                    ->get();

                if ($applications->isNotEmpty()) {
                    Notification::route('mail', $recruiter->email)
                        ->notify(new ApplicationNotification($applications));
                }
            }
        });
    }
}

Of course , we need to ensure our ApplicationNotification has been updated also with logic to summary the daily application .

Once we have this now we just set schedule for it using laravel schedule

class Kernel extends ConsoleKernel
{
    /**
     * Define the application's command schedule.
     */
    protected function schedule(Schedule $schedule): void
    {
      $schedule->job(new SendDailyApplicationSummary)->dailyAt('18:00');
    }
}

Now every recruiter of company will receive one single email summary instead of multiple email for applications that they receive on that day .

Closing

See how simple it is with Laravel’s Notification, Scheduler, and Queues.We can send application updates properly as a daily summary, without spamming recruiters.
This way, recruiters stay happy and not annoying with our job portal notification .


This content originally appeared on DEV Community and was authored by KILLALLSKYWALKER


Print Share Comment Cite Upload Translate Updates
APA

KILLALLSKYWALKER | Sciencx (2025-09-08T16:00:00+00:00) Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel. Retrieved from https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/

MLA
" » Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel." KILLALLSKYWALKER | Sciencx - Monday September 8, 2025, https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/
HARVARD
KILLALLSKYWALKER | Sciencx Monday September 8, 2025 » Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel., viewed ,<https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/>
VANCOUVER
KILLALLSKYWALKER | Sciencx - » Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/
CHICAGO
" » Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel." KILLALLSKYWALKER | Sciencx - Accessed . https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/
IEEE
" » Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel." KILLALLSKYWALKER | Sciencx [Online]. Available: https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/. [Accessed: ]
rf:citation
» Attack of the Clones: From Endless Notifications to Daily Summaries in Laravel | KILLALLSKYWALKER | Sciencx | https://www.scien.cx/2025/09/08/attack-of-the-clones-from-endless-notifications-to-daily-summaries-in-laravel/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.