1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Activity.php
2019-02-03 14:47:15 -07:00

20 lines
318 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
protected $dates = ['processed_at'];
public function toProfile()
{
return $this->belongsTo(Profile::class, 'to_id');
}
public function fromProfile()
{
return $this->belongsTo(Profile::class, 'from_id');
}
}