mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
21 lines
318 B
PHP
21 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');
|
|
}
|
|
}
|