mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
23 lines
395 B
PHP
23 lines
395 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Reminder extends Model
|
|
{
|
|
|
|
public function remindersable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('FireflyIII\User');
|
|
}
|
|
public function getDates()
|
|
{
|
|
return ['created_at', 'updated_at','startdate','enddate'];
|
|
}
|
|
|
|
}
|