Laravel wo heute erstellt wurde.
$posts = Post::whereDate('created_at', Carbon::today())->get();
Fahim Foysal
$posts = Post::whereDate('created_at', Carbon::today())->get();
$topshiriqnoma = $connection->table('topshiriqnoma')->select('created_at')->whereBetween('created_at',
[
Carbon::createFromFormat('Y-m-d', $start_time)->startOfDay()->toDateTimeString(),
Carbon::createFromFormat('Y-m-d', $end_time)->endOfDay()->toDateTimeString()
]
)->orderBy('created_at', 'ASC')->get()->groupBy(function ($query) {
return Carbon::parse($query->created_at)->format('Y-m-d');
});
$post->created_at->diffForHumans()
/*
Arya Stuck 14 minutes ago
Post something
*/