1
0
Fork 0
pixelfed/app/Activity.php

25 lines
415 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
{
2023-04-20 04:30:37 +00:00
protected $casts = [
'processed_at' => 'datetime'
];
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
}