Dapatkan Data Laravel hari ini
$posts = Post::whereDate('created_at', Carbon::today())->get();
Fahim Foysal
$posts = Post::whereDate('created_at', Carbon::today())->get();
use Carbon\Carbon;
$date = Carbon::now();