I have users across many timezones. Everything in the database is stored in UTC, no problem. What I...
How about orderBy(DB::raw('ABS(DATEDIFF(auction.start_date, NOW()))'))-> Add quotes around every...
You can't just insert the SQL, you need to escape it. Something like: orderBy(DB::raw(ABS(DATEDIF...
The Laravel portal for problem solving, knowledge sharing and community building.
The community