We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 502e108 + c650292 commit 37cca39Copy full SHA for 37cca39
src/Models/Team.php
@@ -80,7 +80,7 @@ public function members(): BelongsToMany
80
81
public function programs(): BelongsToMany
82
{
83
- return $this->belongsToMany(config('filament-team-management.models.program'), 'team_programs', 'team_id', 'program_id');
+ return $this->belongsToMany(config('filament-team-management.models.program'), 'program_team', 'team_id', 'program_id');
84
}
85
86
// add relationship to refer to team model itself, so that app panel > Teams resource can show the selected team for editing
0 commit comments