Skip to content

Commit

Permalink
fix(feed): Fixed unknow FeedTopic class
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Jul 24, 2018
1 parent e8f1ce7 commit be4dfb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slimkit-plus-feed/src/Models/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletes;
use Zhiyi\Plus\Models\FeedTopic as FeedTopicModel;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Zhiyi\Plus\Models\FeedTopicLink as FeedTopicLinkModel;

Expand Down Expand Up @@ -225,7 +226,7 @@ public function topics(): BelongsToMany
$table = (new FeedTopicLinkModel)->getTable();

return $this
->belongsToMany(FeedTopic::class, $table, 'feed_id', 'topic_id')
->belongsToMany(FeedTopicModel::class, $table, 'feed_id', 'topic_id')
->using(FeedTopicLinkModel::class);
}
}

0 comments on commit be4dfb0

Please sign in to comment.