hasMany(User::class); } public function projects() { return $this->belongsToMany(Project::class, 'company_project') ->withPivot('role_in_project') ->withTimestamps(); } }