Support the ongoing development of Laravel.io →
posted 8 years ago
Queues

I have a laravel 5.1 app. I want to run a laravel command twice a day in two days of the week. My attempt is as follows:

$schedule->command('supervisor:reminder')->weekly()->mondays()->thursdays()->twiceDaily(6, 13);

For some reason, I don't get the reminder emails on Mondays and Thursdays. What could be wrong?

Last updated 3 years ago.
0

I can't really remember because I don't use this command this often.

If you're a Laracasts paid user check out this video: https://laracasts.com/series/intermediate-laravel/episodes/1

I think that covers it.

Btw, laracasts is worth signing up for!

0

Using the command below,my application is sending notifications to managers on Mondays and Thursdays at 7AM and 2PM.

$schedule->command('manager:reminder')->cron('0 6,13 * * 1,4');
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

divostar divostar Joined 27 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.