Get all incidents, get single incident, transformer for incidents

This commit is contained in:
manavo
2014-11-25 10:30:42 +00:00
parent a1844741bd
commit 683d3f2093
6 changed files with 47 additions and 4 deletions

View File

@@ -8,8 +8,9 @@
'description' => $component->description,
'status_id' => (int) $component->status,
'status' => $component->getHumanStatusAttribute(),
'incident_count' => $component->incidents()->count()
'incident_count' => $component->incidents()->count(),
'created_at' => $component->created_at->timestamp,
'updated_at' => $component->updated_at->timestamp,
];
}
}