# Thêm dữ liệu attach vô table project\_user (ok)

```
 $project = \App\Project::find(1);
 $project->users()->attach([2,3,1]);
```

![](https://1957079826-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MCBeDUD-PK_RF-YgJRe%2F-MEN_-GG04kPpjXT7yqE%2F-MENk7TNbizDVdRZR3aB%2FScreenshot_1.png?alt=media\&token=da7c9705-5308-4b14-993a-3e3b1394d4c9)

