Skip to content

Commit

Permalink
Schedule on Weekends (#17085)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbowers authored and taylorotwell committed Jan 3, 2017
1 parent d96f322 commit b422afa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ public function weekdays()
return $this->spliceIntoPosition(5, '1-5');
}

/**
* Schedule the event to run only on weekends.
*
* @return $this
*/
public function weekends()
{
return $this->spliceIntoPosition(5, '0,6');
}

/**
* Schedule the event to run only on Mondays.
*
Expand Down

0 comments on commit b422afa

Please sign in to comment.