Answers for "laravel set timestamp"

PHP
3

laravel current timestamp

use Carbon\Carbon;
$current_date_time = Carbon::now()->toDateTimeString(); // Produces something like "2019-03-11 12:25:00"
Posted by: Guest on March-03-2021
2

laravel insert timestamp now

Information::create([
  'data_now'=>Carbon\Carbon::now()
])
Posted by: Guest on May-22-2021

Code answers related to "laravel set timestamp"

Browse Popular Code Answers by Language