API call to update existing components

This commit is contained in:
manavo
2014-11-25 21:43:36 +00:00
parent f71639f226
commit c3febdb490
3 changed files with 38 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
'name' => $component->name,
'description' => $component->description,
'status_id' => (int) $component->status,
'status' => $component->getHumanStatusAttribute(),
'status' => $component->humanStatus,
'incident_count' => $component->incidents()->count(),
'created_at' => $component->created_at->timestamp,
'updated_at' => $component->updated_at->timestamp,