belongsTo(Profile::class, 'profile_id', 'id'); } public function target() { return $this->belongsTo(Profile::class, 'following_id', 'id'); } public function profile() { return $this->belongsTo(Profile::class, 'following_id', 'id'); } public function permalink($append = null) { $path = $this->actor->permalink("#accepts/follows/{$this->id}{$append}"); return url($path); } }