Count today's records

I need to count only today's records

   public function sales()
{

$h = Carbon::now();
$recordstoday = Eventos::All();


$data = [
'category_name' => 'dashboard',
'page_name' => 'sales',
'has_scrollspy' => 0,
'scrollspy_offset' => '',
];

return view('dashboard',compact('recordstoday','h'))->with($data);
}

right now it counts all, but i need you to count today's records, to get today use Carbon

 <h4 class="card-text text-center"><b></b></h4>


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3z2kUDJ
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery