参数问题?
参数问题
public function following() {
return $this->belongsToMany(User::class, 'followers', 'follower_id', 'user_id');
}
第三个参数不应该是user表内的键吗?
推荐文章: