Answers for "date scientific name in laravel migration"

PHP
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

Browse Popular Code Answers by Language