PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Cron schedule
The cron expression for every 5 minutes during working hours is:
*/5 9-17 * * 1-5
Combines a step (*/5), an hour range (9-17, so until 17:55) and a weekday range. Laravel's between() limits any frequency to a time window.
| Field | Value | Meaning |
|---|---|---|
| Minute | */5 | every 5 minutes |
| Hour | 9-17 | from 09:00 to 17:00 |
| Day of the month | * | every day of the month |
| Month | * | every month |
| Day of the week | 1-5 | from Monday to Friday |
In your time zone. Change the expression to try another schedule.
Next runs
Examples
Add it with crontab -e over SSH. Replace the path with your script; the redirect keeps cron from emailing you the output.
*/5 9-17 * * 1-5 /path/to/command >> /dev/null 2>&1
Define the task in routes/console.php (Laravel 11 and 12):
use Illuminate\Support\Facades\Schedule;
Schedule::command('reports:send')->everyFiveMinutes()->weekdays()->between('9:00', '17:59');
Then add the scheduler's single crontab entry once; it checks every task each minute:
* * * * * cd /path/to/your-app && php artisan schedule:run >> /dev/null 2>&1
*/5 9-17 * * 1-5./usr/local/bin/php /home/user/app/artisan schedule:run.It runs every 5 minutes during working hours. The five fields are minute, hour, day of the month, month and day of the week; the table above explains each one.
In routes/console.php: Schedule::command('your:command')->everyFiveMinutes()->weekdays()->between('9:00', '17:59'); and add the single crontab entry * * * * * cd /path/to/app && php artisan schedule:run >> /dev/null 2>&1.
The server's time zone (check it with date in SSH, or ask your host). Laravel uses the timezone in config/app.php, and you can set it per task with ->timezone('Europe/London').
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Last updated: 5 November 2026. See the update log at the end.In a normal PHP-FPM request,...
A slow Docker build usually has one of a few causes: you are sending far more...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.