1
0
Fork 0
pixelfed/app/Activity.php

22 lines
389 B
PHP
Raw Normal View History

2018-09-12 00:47:25 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
protected $dates = ['processed_at'];
2020-04-29 21:29:10 +00:00
protected $fillable = ['data', 'to_id', 'from_id', 'object_type'];
2019-02-03 21:47:15 +00:00
public function toProfile()
{
return $this->belongsTo(Profile::class, 'to_id');
}
public function fromProfile()
{
return $this->belongsTo(Profile::class, 'from_id');
}
2018-09-12 00:47:25 +00:00
}