get the record of current date in laravel code example
Example 1: get current date laravel
use Carbon\Carbon;
$date = Carbon::now();
Example 2: laravel where creation is today carbon
$posts = Post::whereDate('created_at', Carbon::today())->get();
Example 3: where('created_at', '=', date('Y-m-d'));
$q->whereDate('created_at', '=', date('Y-m-d'));