【发布时间】:2021-09-23 16:38:01
【问题描述】:
我只需要计算今天的记录
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);
}
现在它很重要,但我需要你计算今天的记录,以便今天使用 Carbon
<h4 class="card-text text-center"><b>{{$turnoshoy->count('created_at')}}</b></h4>
【问题讨论】:
标签: php laravel laravel-5 laravel-8