belongsToMany(Role::class) ->withTimestamps(); } /** * The users that that support to the team * * @return BelongsToMany */ public function supporters() { return $this ->belongsToMany(User::class, 'supporter_team') ->withTimestamps(); } /** * The users that that belong to the team * * @return BelongsToMany */ public function users() { return $this ->belongsToMany(User::class) ->withPivot(['confirmed']) ->withTimestamps(); } }