diff --git a/changes.md b/storage/documentation/changes.md similarity index 94% rename from changes.md rename to storage/documentation/changes.md index ae1d2cd2c..2fedc32c2 100644 --- a/changes.md +++ b/storage/documentation/changes.md @@ -1,4 +1,4 @@ -## Laravel Change Log +# Laravel Change Log ## Contents @@ -20,9 +20,9 @@ - Fixed the passing of strings into the Input::except method. - Fixed replacement of optional parameters in URL::transpose method. -- Added "to_array" method to the base Eloquent model. -- Added "$hidden" static variable to the base Eloquent model. -- Added "sync" method to has_many_and_belongs_to Eloquent relationship. +- [Added `to_array` method to the base Eloquent model](/docs/database/eloquent#to-array). +- [Added `$hidden` static variable to the base Eloquent model](/docs/database/eloquent#to-array). +- [Added `sync` method to has\_many\_and\_belongs\_to Eloquent relationship](/docs/database/eloquent#sync-method). - Improved View performance by only loading contents from file once. - Fix handling of URLs beginning with has in URL::to. diff --git a/storage/documentation/contents.md b/storage/documentation/contents.md index 25d78c8a3..ab0a9f1fb 100644 --- a/storage/documentation/contents.md +++ b/storage/documentation/contents.md @@ -1,5 +1,6 @@ ### General - [Laravel Overview](/docs/home) +- [Change Log](/docs/changes) - [Installation & Setup](/docs/install) - [Requirements](/docs/install#requirements) - [Installation](/docs/install#installation) diff --git a/storage/documentation/database/eloquent.md b/storage/documentation/database/eloquent.md index 3f7f66c66..b0e499fbe 100644 --- a/storage/documentation/database/eloquent.md +++ b/storage/documentation/database/eloquent.md @@ -304,6 +304,7 @@ However, you may often only want to insert a new record into the intermediate ta $user->roles()->attach($role_id); + 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));