DB::raw
ha un parametro quindi prova whereRaw
così:
->whereRaw('tasks.created_at = DATE_ADD(NOW(), INTERVAL -8 HOUR')
DB::raw
ha un parametro quindi prova whereRaw
così:
->whereRaw('tasks.created_at = DATE_ADD(NOW(), INTERVAL -8 HOUR')