pixelfed/app/FollowRequest.php

21 lines
389 B
PHP
Raw Permalink Normal View History

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