public function scopeGetByDateValue($obQuery, $sField, $sDate, $sCondition = '=')
    {

        if(empty($sDate) || empty($sCondition) || empty($sField)) {
            return $obQuery;
        }

        return $obQuery->where($sField, $sCondition, $sDate);
    }
public function scopeGetByDateValue($obQuery, $sField, $sDate, $sCondition = '=')
    {

        if(empty($sDate) || empty($sCondition) || empty($sField)) {
            return $obQuery;
        }

        return $obQuery->where($sField, $sCondition, $sDate);
    }
public function scopeGetByDateValue ( $ obQuery , $ sField , $ sDate , $ sCondition = '=' ) { if ( empty ( $ sDate ) || empty ( $ sCondition ) || empty ( $ sField ) ) { return $ obQuery ; } return $ obQuery -> where ( $ sField , $ sCondition , $ sDate ) ; }
Get by date
@param \Illuminate\Database\Eloquent\Builder|\October\Rain\Database\Builder $obQuery
@param string $sDate
@param string $sField
@param string $sCondition
@return \Illuminate\Database\Eloquent\Builder|\October\Rain\Database\Builder;
Get by date