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'); }