Update FollowRequest model

pull/443/head
Daniel Supernault 8 years ago
parent 38d6d58dc8
commit 13894415ee
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -6,6 +6,8 @@ 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');

Loading…
Cancel
Save