mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-28 07:53:17 +00:00
19 lines
331 B
PHP
19 lines
331 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class FollowRequest extends Model
|
||
|
{
|
||
|
public function follower()
|
||
|
{
|
||
|
return $this->belongsTo(Profile::class, 'follower_id', 'id');
|
||
|
}
|
||
|
|
||
|
public function following()
|
||
|
{
|
||
|
return $this->belongsTo(Profile::class, 'following_id', 'id');
|
||
|
}
|
||
|
}
|