1
0
Fork 0
pixelfed/app/Activity.php

22 lines
351 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'];
protected $fillable = ['*'];
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
}