Answers for "how to plus 10mints into timestamp in laravel"

PHP
0

laravel convert timestamp to date

laravel convert timestamp to date
date('Y-m-d', strtotime($date));

laravel convert date to timestamp
date('Y-m-d H:i:s', strtotime($date));
Posted by: Guest on April-08-2021
0

insert timestamps manually in laravel

// if you would set local timezon otherwise skip this
$timezone = "Asia/Dhaka";
date_default_timezone_set($timezone);
// insert created_at value manually
DB::table('table')->insert([
	'key'=> 'value',
  	'created_at' => date("Y-m-d H:i:s", strtotime('now'))
]);
Posted by: Guest on December-02-2021

Code answers related to "how to plus 10mints into timestamp in laravel"

Browse Popular Code Answers by Language