DB::raw có một tham số, vì vậy hãy thử whereRaw như thế này:
->whereRaw('tasks.created_at = DATE_ADD(NOW(), INTERVAL -8 HOUR')
DB::raw có một tham số, vì vậy hãy thử whereRaw như thế này:
->whereRaw('tasks.created_at = DATE_ADD(NOW(), INTERVAL -8 HOUR')