You don't need the ProjectUsers model.
Watch this video.
// User model
public function projects()
{
return $this->belongsToMany('User');
}
// Project model
public function users()
{
return $this->belongsToMany('User');
}
@pogachar, Thanks that worked I needed to tweak some of the naming so the right tables were selected but it worked!!! Thanks again!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community