PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 13, 2022

[FIXED] Laravel Scheduler: Weekdays and hourlyAt when will it work

 January 13, 2022     laravel, laravel-5, laravel-scheduler     No comments   

Issue

$schedule->command('...')->weekdays()->hourlyAt('55');

Which days and at what hours does this command work?


Solution

weekdays() means that it will be executed on every day except the weekend, so only on Monday, Tuesday, Wednesday, Thursday, and Friday.

hourlyAt('55') means that it will be executed every hour at 55 minutes. So 0:55, 1:55, 2:55, 3:55, ..., 22:55, and 23:55.

These two methods together mean that the given command will be executed every hour at minute 55 on Monday, Tuesday, Wednesday, Thursday, and Friday.



Answered By - Stefan Teunissen
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing