1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Activity.php
Daniel Supernault 3063eb249a
Update AP logger
2020-04-29 15:29:10 -06:00

21 lines
389 B
PHP

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