Adds RSS feed. Closes #26. No link or anything, but accessible at /rss

This commit is contained in:
James Brooks
2014-11-27 14:31:33 +00:00
parent b7d49568f6
commit 252b6a1126
5 changed files with 79 additions and 6 deletions
+4 -1
View File
@@ -16,6 +16,8 @@
protected $fillable = ['component', 'name', 'status', 'message'];
protected $appends = ['humanStatus'];
/**
* An incident belongs to a component.
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
@@ -29,7 +31,8 @@
* @return string
*/
public function getHumanStatusAttribute() {
return Lang::get('incident.status' . $this->status);
$statuses = Lang::get('incident.status');
return $statuses[$this->status];
}
/**