2
我想获取用户的特定日期的所有条目..我不知道如何格式化查询。Eloquent:只获得时间戳的日期
public function getEntry()
{
$entries = Journal::where('id', '=', Auth::id())
->where('created_at', '=', '\Carbon\Carbon::now()->format("l j F Y")')
->get()->first();
return view('home')->with(compact('entries'));
}
我不知道如何格式化'created_at'以匹配服务器时间。任何帮助将主要赞赏。谢谢。