You can use whereRaw('date(created_at) = curdate()')
if timezone is not a concern or whereRaw('date(created_at) = ?', [Carbon::now()->format('Y-m-d')] )
otherwise.
Since the created_at
field is a timestamp, you need to get only the date part of it and ignore the time part.