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