Answers for "get all those rows who have been created and updated today laravel"

PHP
1

laravel where creation is today carbon

$posts = Post::whereDate('created_at', Carbon::today())->get();
Posted by: Guest on September-14-2020
1

where('created_at', '=', date('Y-m-d'));

$q->whereDay('created_at', '=', date('d'));
$q->whereMonth('created_at', '=', date('m'));
$q->whereYear('created_at', '=', date('Y'));
Posted by: Guest on July-11-2020

Code answers related to "get all those rows who have been created and updated today laravel"

Browse Popular Code Answers by Language