ManagesFrequencies
Methods
cron ( $expression ) : $this
The Cron expression representing the event's frequency.
Parameters
- $expression string
between ( $startTime , $endTime ) : $this
Schedule the event to run between start and end time.
Parameters
- $startTime string
- $endTime string
unlessBetween ( $startTime , $endTime ) : $this
Schedule the event to not run between start and end time.
Parameters
- $startTime string
- $endTime string
inTimeInterval ( $startTime , $endTime ) : Closure
Schedule the event to run between start and end time.
Parameters
- $startTime string
- $endTime string
everySecond ( ) : $this
Schedule the event to run every second.
everyTwoSeconds ( ) : $this
Schedule the event to run every two seconds.
everyFiveSeconds ( ) : $this
Schedule the event to run every five seconds.
everyTenSeconds ( ) : $this
Schedule the event to run every ten seconds.
everyFifteenSeconds ( ) : $this
Schedule the event to run every fifteen seconds.
everyTwentySeconds ( ) : $this
Schedule the event to run every twenty seconds.
everyThirtySeconds ( ) : $this
Schedule the event to run every thirty seconds.
repeatEvery ( $seconds ) : $this
Schedule the event to run multiple times per minute.
Parameters
- $seconds int
everyMinute ( ) : $this
Schedule the event to run every minute.
everyTwoMinutes ( ) : $this
Schedule the event to run every two minutes.
everyThreeMinutes ( ) : $this
Schedule the event to run every three minutes.
everyFourMinutes ( ) : $this
Schedule the event to run every four minutes.
everyFiveMinutes ( ) : $this
Schedule the event to run every five minutes.
everyTenMinutes ( ) : $this
Schedule the event to run every ten minutes.
everyFifteenMinutes ( ) : $this
Schedule the event to run every fifteen minutes.
everyThirtyMinutes ( ) : $this
Schedule the event to run every thirty minutes.
hourly ( ) : $this
Schedule the event to run hourly.
hourlyAt ( $offset ) : $this
Schedule the event to run hourly at a given offset in the hour.
Parameters
- $offset array|string|int
everyOddHour ( $offset ) : $this
Schedule the event to run every odd hour.
Parameters
- $offset array|string|int
everyTwoHours ( $offset ) : $this
Schedule the event to run every two hours.
Parameters
- $offset array|string|int
everyThreeHours ( $offset ) : $this
Schedule the event to run every three hours.
Parameters
- $offset array|string|int
everyFourHours ( $offset ) : $this
Schedule the event to run every four hours.
Parameters
- $offset array|string|int
everySixHours ( $offset ) : $this
Schedule the event to run every six hours.
Parameters
- $offset array|string|int
daily ( ) : $this
Schedule the event to run daily.
at ( $time ) : $this
Schedule the command at a given time.
Parameters
- $time string
dailyAt ( $time ) : $this
Schedule the event to run daily at a given time (10:00, 19:30, etc).
Parameters
- $time string
twiceDaily ( $first , $second ) : $this
Schedule the event to run twice daily.
Parameters
- $first int
- $second int
twiceDailyAt ( $first , $second , $offset ) : $this
Schedule the event to run twice daily at a given offset.
Parameters
- $first int
- $second int
- $offset int
hourBasedSchedule ( $minutes , $hours ) : $this
Schedule the event to run at the given minutes and hours.
Parameters
- $minutes array|string|int
- $hours array|string|int
weekdays ( ) : $this
Schedule the event to run only on weekdays.
weekends ( ) : $this
Schedule the event to run only on weekends.
mondays ( ) : $this
Schedule the event to run only on Mondays.
tuesdays ( ) : $this
Schedule the event to run only on Tuesdays.
wednesdays ( ) : $this
Schedule the event to run only on Wednesdays.
thursdays ( ) : $this
Schedule the event to run only on Thursdays.
fridays ( ) : $this
Schedule the event to run only on Fridays.
saturdays ( ) : $this
Schedule the event to run only on Saturdays.
sundays ( ) : $this
Schedule the event to run only on Sundays.
weekly ( ) : $this
Schedule the event to run weekly.
weeklyOn ( $dayOfWeek , $time ) : $this
Schedule the event to run weekly on a given day and time.
Parameters
- $dayOfWeek array|mixed
- $time string
monthly ( ) : $this
Schedule the event to run monthly.
monthlyOn ( $dayOfMonth , $time ) : $this
Schedule the event to run monthly on a given day and time.
Parameters
- $dayOfMonth int
- $time string
twiceMonthly ( $first , $second , $time ) : $this
Schedule the event to run twice monthly at a given time.
Parameters
- $first int
- $second int
- $time string
lastDayOfMonth ( $time ) : $this
Schedule the event to run on the last day of the month.
Parameters
- $time string
quarterly ( ) : $this
Schedule the event to run quarterly.
quarterlyOn ( $dayOfQuarter , $time ) : $this
Schedule the event to run quarterly on a given day and time.
Parameters
- $dayOfQuarter int
- $time int
yearly ( ) : $this
Schedule the event to run yearly.
yearlyOn ( $month , $dayOfMonth , $time ) : $this
Schedule the event to run yearly on a given month, day, and time.
Parameters
- $month int
- $dayOfMonth int|string
- $time string
days ( $days ) : $this
Set the days of the week the command should run on.
Parameters
- $days array|mixed
timezone ( $timezone ) : $this
Set the timezone the date should be evaluated on.
Parameters
- $timezone DateTimeZone |string
spliceIntoPosition ( $position , $value ) : $this
Splice the given value into the given position of the expression.
Parameters
- $position int
- $value string