Answers for "laravel set current datetime in database"

PHP
0

laravel where created_at today

$posts = Post::whereDate('created_at', Carbon::today())->get();
Posted by: Guest on March-04-2021
2

laravel date default now

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Posted by: Guest on February-26-2021

Code answers related to "laravel set current datetime in database"

Browse Popular Code Answers by Language