PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

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