Illuminate\Database\Query\Builder::whereDate PHP Method

whereDate() public method

Add a "where date" statement to the query.
public whereDate ( string $column, string $operator, mixed $value = null, string $boolean = 'and' ) : Builder | static
$column string
$operator string
$value mixed
$boolean string
return Builder | static
    public function whereDate($column, $operator, $value = null, $boolean = 'and')
    {
        list($value, $operator) = $this->prepareValueAndOperator($value, $operator, func_num_args() == 2);
        return $this->addDateBasedWhere('Date', $column, $operator, $value, $boolean);
    }

Usage Example

Example #1
0
 /**
  * Add a "where date" statement to the query.
  *
  * @param string $column
  * @param string $operator
  * @param int $value
  * @param string $boolean
  * @return \Illuminate\Database\Query\Builder|static 
  * @static 
  */
 public static function whereDate($column, $operator, $value, $boolean = 'and')
 {
     return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
 }