Answers for "how to change foirmat for laravel timestamps"

PHP
1

laravel turn off timestamps

public $timestamps = false; (In the model which you need to disable)
Posted by: Guest on September-29-2021
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
1

how convert the string time stamp to date in laravel

$timestamp = strtotime("13-10-2013 15:00");
Posted by: Guest on June-16-2021
0

convert date to timestamp in laravel builder

$date = '2021-05-20';
date('Y-m-d H:i:s', strtotime($date));
Posted by: Guest on May-20-2021
0

custom timestamp column laravel

class BaseModel extends Eloquent {
    const CREATED_AT = 'date_created';
    const UPDATED_AT = 'date_modified';
}
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language