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
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|int
everyTwoHours ( ) : $this
Schedule the event to run every two hours.
everyThreeHours ( ) : $this
Schedule the event to run every three hours.
everyFourHours ( ) : $this
Schedule the event to run every four hours.
everySixHours ( ) : $this
Schedule the event to run every six hours.
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
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.
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