laravel where created_at is today

User::where('created_at', '>=', Carbon::today())->count();

How do I use the created_at field to get only the records that were created today and no other day or time?

I was thinking of a ->where('created_at', '>=', Carbon::now()) But Im not sure that

BETA Snippet explanation automatically generated by OpenAI:

Here is what the above code is doing:
1. It is first creating a new user.
2. Then it is checking if the user is created.
3. If the user is created, the user is counted.

The above code is doing something similar to the following:

```

Snippet By Tony Lea

·

Created October 21st, 2021

·

Report Snippet