Hi, I'm new on this forum.
I have a problem with a line of the query:
whereBetween("CdrRaw.datetime", [$DataI,$DataF])
This attempt threw an error and the query debug displays:
where 'CdrRaw'.'datetime' between ? and ?
So I tried to make it Raw with
->whereRaw("CdrRaw.datetime between $DataI AND $DataF")
And here I could see the problem: the query builder puts some whitespaces in my date string even if $DateI and $DateF are simple date strings whithout any whitespace!
where CdrRaw.datetime between 2022 -03 -06 AND 2022 -03 -07
I also tried removing the unwanted chars with "str_replace()" but without any result, what can I do?
Thanks in advance for your time!