mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
21 lines
389 B
PHP
21 lines
389 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class FollowRequest extends Model
|
|
{
|
|
protected $fillable = ['follower_id', 'following_id'];
|
|
|
|
public function follower()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'follower_id', 'id');
|
|
}
|
|
|
|
public function following()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'following_id', 'id');
|
|
}
|
|
}
|