Answers for "datetime value laravel migration"

PHP
1

laravel migration add datetime column with default

$table->timestamp('column_name')->useCurrent();
Posted by: Guest on November-27-2020
0

datetime-local laravel migration data type

public function getDateStartAttribute($value)
{
    return Carbon::parse($value)->format('Y-m-d\TH:i');
}

public function getDateEndAttribute($value)
{
    return Carbon::parse($value)->format('Y-m-d\TH:i');
}
Posted by: Guest on December-11-2020

Code answers related to "datetime value laravel migration"

Browse Popular Code Answers by Language