Sort out web syndication feeds, and add JSON feeds, fixes issue #52

This commit is contained in:
Jonny Barnes 2017-06-04 19:06:22 +01:00
parent b234e2133b
commit e848486b33
11 changed files with 301 additions and 41 deletions

View file

@ -168,6 +168,16 @@ class Note extends Model
return config('app.shorturl') . '/notes/' . $this->nb60id;
}
/**
* Get the pubdate value for RSS feeds.
*
* @return string
*/
public function getPubdateAttribute()
{
return $this->updated_at->toRSSString();
}
/**
* Get the relavent client name assocaited with the client id.
*