put change log in docs.

This commit is contained in:
Taylor Otwell
2012-04-03 09:48:44 -05:00
parent 7d30d179b7
commit c31df7379b
3 changed files with 6 additions and 4 deletions

View File

@@ -304,6 +304,7 @@ However, you may often only want to insert a new record into the intermediate ta
$user->roles()->attach($role_id);
<a name="sync-method"></a>
Alternatively, you can use the `sync` method, which accepts an array of IDs to "sync" with the intermediate table. After this operation is complete, only the IDs in the array will be on the intermediate table.
$user->roles()->sync(array(1, 2, 3));