1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-03-04 10:39:08 +00:00
pixelfed/app/FollowRequest.php

31 lines
613 B
PHP
Raw Normal View History

2018-09-01 22:28:01 -06:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class FollowRequest extends Model
{
2018-09-02 22:00:54 -06:00
protected $fillable = ['follower_id', 'following_id'];
2018-09-01 22:28:01 -06:00
public function follower()
{
return $this->belongsTo(Profile::class, 'follower_id', 'id');
}
public function following()
{
return $this->belongsTo(Profile::class, 'following_id', 'id');
}
2018-12-31 23:25:00 -07:00
public function actor()
{
return $this->belongsTo(Profile::class, 'follower_id', 'id');
}
public function target()
{
return $this->belongsTo(Profile::class, 'following_id', 'id');
}
2018-09-01 22:28:01 -06:00
}