Skip to content

Commit

Permalink
T5 Update Team.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imtyaz-17 authored Jul 6, 2024
1 parent f6e1c2a commit f55c5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Team extends Model
public function users()
{
// TASK: fix this by adding some extra code
return $this->belongsToMany(User::class,'team_user');
return $this->belongsToMany(User::class,'team_user')->withPivot('position', 'created_at');
}

}

0 comments on commit f55c5c5

Please sign in to comment.