© 2026 Hedgehog Software, LLC
public function Members(): BelongsToMany { return $this->belongsToMany(Member::class) ->withPivot('responsibility_id') ->using(ProjectMember::class) ->with('pivot.responsibility') ->leftJoin('responsibilities', 'project_member.responsibility_id', '=', 'responsibilities.id') ->orderByPivot('responsibilities.order') ->withTimestamps(); }
Call to a member function newCollection() on null
Member
public function Members(): BelongsToMany { return $this->belongsToMany(Member::class) ->withPivot('responsibility_id') // ->using(ProjectMember::class) // ->with('pivot.responsibility') // ->leftJoin('responsibilities', 'project_member.responsibility_id', '=', 'responsibilities.id') // ->orderByPivot('responsibilities.order') ->withTimestamps(); }