Files
firefly-iii/app/Models/Reminder.php

24 lines
398 B
PHP
Raw Normal View History

2015-02-06 04:52:16 +01:00
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
2015-02-06 05:04:06 +01:00
class Reminder extends Model
{
2015-02-06 04:52:16 +01:00
2015-02-07 13:15:40 +01:00
public function getDates()
{
return ['created_at', 'updated_at', 'startdate', 'enddate'];
}
2015-02-06 05:14:27 +01:00
public function remindersable()
{
return $this->morphTo();
}
public function user()
{
2015-02-06 05:35:00 +01:00
return $this->belongsTo('FireflyIII\User');
2015-02-06 05:14:27 +01:00
}
2015-02-06 04:52:16 +01:00
}