First attempt at generating and showing reminders.

This commit is contained in:
Sander Dorigo
2014-11-17 10:10:57 +01:00
parent 6581ee0ee0
commit 5fc31f3c1e
8 changed files with 139 additions and 5 deletions

View File

@@ -49,4 +49,24 @@ class Reminder extends Ardent
{
return $this->belongsTo('User');
}
/**
* @param $value
*
* @return mixed
*/
public function getDataAttribute($value)
{
return json_decode($value);
}
/**
* @param $value
*/
public function setDataAttribute($value)
{
$this->attributes['data'] = json_encode($value);
}
}