trait BuildsWhereDateClauses (View source)

Methods

$this
wherePast(array|string $columns)

Add a where clause to determine if a "date" column is in the past to the query.

$this
whereNowOrPast(array|string $columns)

Add a where clause to determine if a "date" column is in the past or now to the query.

$this
orWherePast(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the past to the query.

$this
orWhereNowOrPast(array|string $columns)

Add a where clause to determine if a "date" column is in the past or now to the query.

$this
whereFuture(array|string $columns)

Add a where clause to determine if a "date" column is in the future to the query.

$this
whereNowOrFuture(array|string $columns)

Add a where clause to determine if a "date" column is in the future or now to the query.

$this
orWhereFuture(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the future to the query.

$this
orWhereNowOrFuture(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the future or now to the query.

$this
wherePastOrFuture(array|string $columns, $operator, $boolean)

Add an "where" clause to determine if a "date" column is in the past or future.

$this
whereToday(array|string $columns, string $boolean = 'and')

Add a "where date" clause to determine if a "date" column is today to the query.

$this
whereBeforeToday(array|string $columns)

Add a "where date" clause to determine if a "date" column is before today.

$this
whereTodayOrBefore(array|string $columns)

Add a "where date" clause to determine if a "date" column is today or before to the query.

$this
whereAfterToday(array|string $columns)

Add a "where date" clause to determine if a "date" column is after today.

$this
whereTodayOrAfter(array|string $columns)

Add a "where date" clause to determine if a "date" column is today or after to the query.

$this
orWhereToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today to the query.

$this
orWhereBeforeToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is before today.

$this
orWhereTodayOrBefore(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today or before to the query.

$this
orWhereAfterToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is after today.

$this
orWhereTodayOrAfter(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today or after to the query.

$this
whereTodayBeforeOrAfter(array|string $columns, string $operator, string $boolean)

Add a "where date" clause to determine if a "date" column is today or after to the query.

Details

$this wherePast(array|string $columns)

Add a where clause to determine if a "date" column is in the past to the query.

Parameters

array|string $columns

Return Value

$this

$this whereNowOrPast(array|string $columns)

Add a where clause to determine if a "date" column is in the past or now to the query.

Parameters

array|string $columns

Return Value

$this

$this orWherePast(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the past to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereNowOrPast(array|string $columns)

Add a where clause to determine if a "date" column is in the past or now to the query.

Parameters

array|string $columns

Return Value

$this

$this whereFuture(array|string $columns)

Add a where clause to determine if a "date" column is in the future to the query.

Parameters

array|string $columns

Return Value

$this

$this whereNowOrFuture(array|string $columns)

Add a where clause to determine if a "date" column is in the future or now to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereFuture(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the future to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereNowOrFuture(array|string $columns)

Add an "or where" clause to determine if a "date" column is in the future or now to the query.

Parameters

array|string $columns

Return Value

$this

protected $this wherePastOrFuture(array|string $columns, $operator, $boolean)

Add an "where" clause to determine if a "date" column is in the past or future.

Parameters

array|string $columns
$operator
$boolean

Return Value

$this

$this whereToday(array|string $columns, string $boolean = 'and')

Add a "where date" clause to determine if a "date" column is today to the query.

Parameters

array|string $columns
string $boolean

Return Value

$this

$this whereBeforeToday(array|string $columns)

Add a "where date" clause to determine if a "date" column is before today.

Parameters

array|string $columns

Return Value

$this

$this whereTodayOrBefore(array|string $columns)

Add a "where date" clause to determine if a "date" column is today or before to the query.

Parameters

array|string $columns

Return Value

$this

$this whereAfterToday(array|string $columns)

Add a "where date" clause to determine if a "date" column is after today.

Parameters

array|string $columns

Return Value

$this

$this whereTodayOrAfter(array|string $columns)

Add a "where date" clause to determine if a "date" column is today or after to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereBeforeToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is before today.

Parameters

array|string $columns

Return Value

$this

$this orWhereTodayOrBefore(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today or before to the query.

Parameters

array|string $columns

Return Value

$this

$this orWhereAfterToday(array|string $columns)

Add an "or where date" clause to determine if a "date" column is after today.

Parameters

array|string $columns

Return Value

$this

$this orWhereTodayOrAfter(array|string $columns)

Add an "or where date" clause to determine if a "date" column is today or after to the query.

Parameters

array|string $columns

Return Value

$this

protected $this whereTodayBeforeOrAfter(array|string $columns, string $operator, string $boolean)

Add a "where date" clause to determine if a "date" column is today or after to the query.

Parameters

array|string $columns
string $operator
string $boolean

Return Value

$this